aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-callbacks.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r--mail/mail-callbacks.c11
1 files changed, 8 insertions, 3 deletions
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);