From 731a90ea4af87c16fff3c367bcb786f18792a66f Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 10 Sep 2001 17:11:59 +0000 Subject: Remove some mailer-set headers. Fixes bug #9462. 2001-09-10 Jeffrey Stedfast * mail-callbacks.c (do_edit_messages): Remove some mailer-set headers. Fixes bug #9462. svn path=/trunk/; revision=12734 --- mail/mail-callbacks.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index f216410546..46e6ccaa43 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -1469,16 +1469,21 @@ toggle_as_important (BonoboUIComponent *uih, void *user_data, const char *path) } static void -do_edit_messages(CamelFolder *folder, GPtrArray *uids, GPtrArray *messages, void *data) +do_edit_messages (CamelFolder *folder, GPtrArray *uids, GPtrArray *messages, void *data) { /*FolderBrowser *fb = data;*/ int i; for (i = 0; i < messages->len; i++) { EMsgComposer *composer; - + XEvolution *hdrs; + + hdrs = mail_tool_remove_xevolution_headers (messages->pdata[i]); + mail_tool_destroy_xevolution (hdrs); + camel_medium_remove_header (CAMEL_MEDIUM (messages->pdata[i]), "X-Mailer"); + composer = e_msg_composer_new_with_message (messages->pdata[i]); - + if (composer) { gtk_signal_connect (GTK_OBJECT (composer), "send", composer_send_cb, NULL); -- cgit