aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-04-19 05:39:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-04-19 05:39:59 +0800
commitf133091e608c316a35b63150e75cf62c43c29603 (patch)
tree4ffff093ad7a37e5c355393c2e763ff5350f4c88
parent9b7cc54d6ff67c83590706ee0b6749a7e1f3ca21 (diff)
downloadgsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.tar
gsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.tar.gz
gsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.tar.bz2
gsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.tar.lz
gsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.tar.xz
gsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.tar.zst
gsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.zip
Removed all Delivered-To headers before redirecting. Fixes bug #23635.
2002-04-18 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (redirect_get_composer): Removed all Delivered-To headers before redirecting. Fixes bug #23635. svn path=/trunk/; revision=16525
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-callbacks.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 74a604f446..9795a6c130 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-04-18 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-callbacks.c (redirect_get_composer): Removed all
+ Delivered-To headers before redirecting. Fixes bug #23635.
+
2002-04-18 Radek Doulik <rodo@ximian.com>
* mail-callbacks.c (do_mail_print): use default paper name in case
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index c9705b280d..9c2c9f7d7c 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -1325,6 +1325,12 @@ redirect_get_composer (CamelMimeMessage *message)
if (!account)
account = mail_config_get_default_account ();
+ /* QMail will refuse to send a message if it finds one of
+ it's Delivered-To headers in the message, so remove all
+ Delivered-To headers. Fixes bug #23635. */
+ while (camel_medium_get_header (CAMEL_MEDIUM (message), "Delivered-To"))
+ camel_medium_remove_header (CAMEL_MEDIUM (message), "Delivered-To");
+
composer = e_msg_composer_new_redirect (message, account->name);
if (composer) {
gtk_signal_connect (GTK_OBJECT (composer), "send",