projects
/
modest
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
64ec1cf
)
* Removed duplicated To: entries, fixes NB#87269
author
Sergio Villar Senin
<svillar@igalia.com>
Tue, 9 Sep 2008 10:29:12 +0000
(10:29 +0000)
committer
Sergio Villar Senin
<svillar@igalia.com>
Tue, 9 Sep 2008 10:29:12 +0000
(10:29 +0000)
pmo-trunk-r5518
src/modest-tny-msg.c
patch
|
blob
|
history
diff --git
a/src/modest-tny-msg.c
b/src/modest-tny-msg.c
index
23f465f
..
8137add
100644
(file)
--- a/
src/modest-tny-msg.c
+++ b/
src/modest-tny-msg.c
@@
-76,8
+76,11
@@
modest_tny_msg_new (const gchar* mailto, const gchar* from, const gchar *cc,
tny_header_set_from (TNY_HEADER (header), from);
tny_header_set_replyto (TNY_HEADER (header), from);
}
tny_header_set_from (TNY_HEADER (header), from);
tny_header_set_replyto (TNY_HEADER (header), from);
}
- if ((mailto != NULL) && (strlen(mailto) > 0))
- tny_header_set_to (TNY_HEADER (header), mailto);
+ if ((mailto != NULL) && (strlen(mailto) > 0)) {
+ gchar *removed_to = modest_text_utils_remove_duplicate_addresses (mailto);
+ tny_header_set_to (TNY_HEADER (header), removed_to);
+ g_free (removed_to);
+ }
if ((cc != NULL) && (strlen(cc) > 0))
tny_header_set_cc (TNY_HEADER (header), cc);
if ((bcc != NULL) && (strlen(bcc) > 0))
if ((cc != NULL) && (strlen(cc) > 0))
tny_header_set_cc (TNY_HEADER (header), cc);
if ((bcc != NULL) && (strlen(bcc) > 0))