diff options
author | Milan Crha <mcrha@redhat.com> | 2009-10-16 03:18:49 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-10-16 03:18:49 +0800 |
commit | c9dcd2a9003c1f1f34e15698903149946994cd84 (patch) | |
tree | df823e2cd550a1daec97428d1d301038bf5cbddf | |
parent | f74a1448947259f52293ba922b64b2b3b8ff726c (diff) | |
download | gsoc2013-evolution-c9dcd2a9003c1f1f34e15698903149946994cd84.tar gsoc2013-evolution-c9dcd2a9003c1f1f34e15698903149946994cd84.tar.gz gsoc2013-evolution-c9dcd2a9003c1f1f34e15698903149946994cd84.tar.bz2 gsoc2013-evolution-c9dcd2a9003c1f1f34e15698903149946994cd84.tar.lz gsoc2013-evolution-c9dcd2a9003c1f1f34e15698903149946994cd84.tar.xz gsoc2013-evolution-c9dcd2a9003c1f1f34e15698903149946994cd84.tar.zst gsoc2013-evolution-c9dcd2a9003c1f1f34e15698903149946994cd84.zip |
Bug #597473 - Reply-all composes reply to wrong address
-rw-r--r-- | mail/em-composer-utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index 81055d1ab0..b3bb7e6b59 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -2005,6 +2005,12 @@ get_reply_all (CamelMimeMessage *message, CamelInternetAddress *to, CamelInterne concat_unique_addrs (cc, to_addrs, rcpt_hash); concat_unique_addrs (cc, cc_addrs, rcpt_hash); + /* use reply_to for an empty To: */ + if (reply_to && camel_address_length ((CamelAddress *) to) == 0) { + camel_internet_address_get (reply_to, 0, &name, &addr); + camel_internet_address_add (to, name, addr); + } + /* promote the first Cc: address to To: if To: is empty */ if (camel_address_length ((CamelAddress *) to) == 0 && camel_address_length ((CamelAddress *)cc) > 0) { camel_internet_address_get (cc, 0, &name, &addr); |