X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-text-utils.c;h=5aab3a3b6e71eb953faf11442f22ac0fecde3d89;hp=db00b31447a5bec21178302879162fd0f7375503;hb=f065ac27e44ca355d02b24513e6695812bcf546c;hpb=23c042a0b5053abc7c406f1e37e162f7a7771abe diff --git a/src/modest-text-utils.c b/src/modest-text-utils.c index db00b31..5aab3a3 100644 --- a/src/modest-text-utils.c +++ b/src/modest-text-utils.c @@ -665,15 +665,16 @@ modest_text_utils_split_addresses_list (const gchar *addresses) gboolean after_at = FALSE; g_return_val_if_fail (addresses, NULL); - - /* skip any space, ',', ';' at the start */ - while (my_addrs && (my_addrs[0] == ' ' || my_addrs[0] == ',' || my_addrs[0] == ';')) + + /* skip any space, ',', ';' '\n' at the start */ + while (my_addrs && (my_addrs[0] == ' ' || my_addrs[0] == ',' || + my_addrs[0] == ';' || my_addrs[0] == '\n')) ++my_addrs; /* are we at the end of addresses list? */ if (!my_addrs[0]) return NULL; - + /* nope, we are at the start of some address * now, let's find the end of the address */ end = my_addrs + 1;