diff options
Diffstat (limited to 'mail/em-composer-utils.c')
-rw-r--r-- | mail/em-composer-utils.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index abc758915f..42e70400a7 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -868,7 +868,6 @@ static void forward_non_attached (GPtrArray *messages, int style, const char *fromuri) { CamelMimeMessage *message; - CamelDataWrapper *wrapper; EMsgComposer *composer; char *subject, *text; int i; @@ -1458,6 +1457,13 @@ get_reply_all (CamelMimeMessage *message, CamelInternetAddress **to, CamelIntern camel_internet_address_add (*to, name, addr); camel_address_remove ((CamelAddress *) *cc, 0); } + + /* if To: is still empty, may we removed duplicates (i.e. ourself), so add the original To if it was set */ + if (camel_address_length((CamelAddress *)*to) == 0 + && (camel_internet_address_get(to_addrs, 0, &name, &addr) + || camel_internet_address_get(cc_addrs, 0, &name, &addr))) { + camel_internet_address_add(*to, name, addr); + } g_hash_table_destroy (rcpt_hash); } |