projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
23c042a
)
Do ignore '\n' when splitting addresses
author
Sergio Villar Senin
<svillar@igalia.com>
Wed, 4 Nov 2009 18:15:10 +0000
(19:15 +0100)
committer
Sergio Villar Senin
<svillar@igalia.com>
Mon, 9 Nov 2009 17:45:56 +0000
(18:45 +0100)
Fixes NB#144914 (6/8)
src/modest-text-utils.c
patch
|
blob
|
history
diff --git
a/src/modest-text-utils.c
b/src/modest-text-utils.c
index
db00b31
..
5aab3a3
100644
(file)
--- 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);
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;
++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;
/* nope, we are at the start of some address
* now, let's find the end of the address */
end = my_addrs + 1;