aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
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 /mail/mail-callbacks.c
parent9b7cc54d6ff67c83590706ee0b6749a7e1f3ca21 (diff)
downloadgsoc2013-evolution-f133091e608c316a35b63150e75cf62c43c29603.tar.gz
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
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c6
1 files changed, 6 insertions, 0 deletions
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",