From b91c6da187f51f6e2956f5d89b193f7004449360 Mon Sep 17 00:00:00 2001
From: Milan Crha <mcrha@redhat.com>
Date: Wed, 2 May 2012 13:59:21 +0200
Subject: Bug #246581 - Replies in Sent folder goes to myself

---
 mail/em-composer-utils.c | 4 ++++
 1 file changed, 4 insertions(+)

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

diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 5bacb2e38a..7ea31635e6 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -2819,6 +2819,10 @@ em_utils_reply_to_message (EShell *shell,
 	account = em_utils_guess_account_with_recipients (message, folder);
 	flags = CAMEL_MESSAGE_ANSWERED | CAMEL_MESSAGE_SEEN;
 
+	if (!address && (type == E_MAIL_REPLY_TO_FROM || type == E_MAIL_REPLY_TO_SENDER) &&
+	    folder && em_utils_folder_is_sent (folder))
+		type = E_MAIL_REPLY_TO_ALL;
+
 	switch (type) {
 	case E_MAIL_REPLY_TO_FROM:
 		if (folder)
-- 
cgit