[evolution/gnome-2-32] Bug #567265 - BCC kept on message forward from Sent folder
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-2-32] Bug #567265 - BCC kept on message forward from Sent folder
- Date: Tue, 19 Oct 2010 07:37:17 +0000 (UTC)
commit 6687e1d296ae5c29af1f29bc5a640b663b77314b
Author: Milan Crha <mcrha redhat com>
Date: Tue Oct 19 09:36:33 2010 +0200
Bug #567265 - BCC kept on message forward from Sent folder
em-format/em-format-quote.c | 4 ++++
mail/em-composer-utils.c | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/em-format/em-format-quote.c b/em-format/em-format-quote.c
index bbd2e3e..972539f 100644
--- a/em-format/em-format-quote.c
+++ b/em-format/em-format-quote.c
@@ -371,6 +371,10 @@ emfq_format_header (EMFormat *emf,
strcpy (name, namein);
canon_header_name (name);
+ /* Never quote Bcc headers */
+ if (g_str_equal (name, "Bcc") || g_str_equal (name, "Resent-Bcc"))
+ return;
+
for (i = 0; addrspec_hdrs[i]; i++) {
if (!strcmp (name, addrspec_hdrs[i])) {
addrspec = TRUE;
diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c
index 82ba4bc..e565d9d 100644
--- a/mail/em-composer-utils.c
+++ b/mail/em-composer-utils.c
@@ -1532,6 +1532,12 @@ redirect_get_composer (EShell *shell,
while (camel_medium_get_header (CAMEL_MEDIUM (message), "Delivered-To"))
camel_medium_remove_header (CAMEL_MEDIUM (message), "Delivered-To");
+ while (camel_medium_get_header (CAMEL_MEDIUM (message), "Bcc"))
+ camel_medium_remove_header (CAMEL_MEDIUM (message), "Bcc");
+
+ while (camel_medium_get_header (CAMEL_MEDIUM (message), "Resent-Bcc"))
+ camel_medium_remove_header (CAMEL_MEDIUM (message), "Resent-Bcc");
+
account = em_utils_guess_account_with_recipients (message, NULL);
composer = e_msg_composer_new_redirect (
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]