From 1e53063a44e6127bb178370b44196a5f4740aabd Mon Sep 17 00:00:00 2001
From: Matthew Barnes <mbarnes@redhat.com>
Date: Tue, 2 Mar 2010 19:09:56 -0500
Subject: Revert "Bug #597473 - Reply-all composes reply to wrong address"

This reverts commit c9dcd2a9003c1f1f34e15698903149946994cd84, which
breaks the use case of clicking "Reply All" on a message in your Sent
folder which you yourself wrote.  The commit causes your own email
address to be included in the recipients list, which is undesired and a
regression from 2.28.
---
 mail/em-composer-utils.c | 6 ------
 1 file changed, 6 deletions(-)

(limited to 'mail/em-composer-utils.c')

diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 80a86205a3..f69e59017d 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1893,12 +1893,6 @@ 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);
-- 
cgit