aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-01-22 07:15:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-01-22 07:15:50 +0800
commit2679830e641117a9f68f16f5aae3984905d7fb3c (patch)
treec6a8214b256f5cab0a09988d20b4d38260011a55 /mail/mail-ops.c
parente304de4bbe4612de62a3fbd3d3310913377d838b (diff)
downloadgsoc2013-evolution-2679830e641117a9f68f16f5aae3984905d7fb3c.tar
gsoc2013-evolution-2679830e641117a9f68f16f5aae3984905d7fb3c.tar.gz
gsoc2013-evolution-2679830e641117a9f68f16f5aae3984905d7fb3c.tar.bz2
gsoc2013-evolution-2679830e641117a9f68f16f5aae3984905d7fb3c.tar.lz
gsoc2013-evolution-2679830e641117a9f68f16f5aae3984905d7fb3c.tar.xz
gsoc2013-evolution-2679830e641117a9f68f16f5aae3984905d7fb3c.tar.zst
gsoc2013-evolution-2679830e641117a9f68f16f5aae3984905d7fb3c.zip
Remove the X-Evolution header before we send.
2001-01-21 Jeffrey Stedfast <fejj@ximian.com> * mail-ops.c (do_send_queue): Remove the X-Evolution header before we send. svn path=/trunk/; revision=7689
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index c6db157afb..3391001fae 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -714,13 +714,16 @@ do_send_queue (gpointer in_data, gpointer op_data, CamelException *ex)
message = camel_folder_get_message (input->folder_queue, uids->pdata[i], ex);
if (camel_exception_is_set (ex))
break;
-
+
+ /* Remove the X-Evolution header */
+ camel_medium_remove_header (CAMEL_MEDIUM (message), "X-Evolution");
+
set_x_mailer (message);
-
+
camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0);
/* Get the preferred transport URI */
- transport_url = camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Transport");
+ transport_url = (char *) camel_medium_get_header (CAMEL_MEDIUM (message), "X-Evolution-Transport");
if (transport_url) {
transport_url = g_strdup (transport_url);
g_strstrip (transport_url);