aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 32eb68b4f1..380ba24d30 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -887,6 +887,10 @@ mail_append_mail (CamelFolder *folder, CamelMimeMessage *message, CamelMessageIn
g_assert(CAMEL_IS_FOLDER (folder));
g_assert(CAMEL_IS_MIME_MESSAGE (message));
+ if (!camel_medium_get_header (CAMEL_MEDIUM (message), "X-Mailer"))
+ camel_medium_set_header (CAMEL_MEDIUM (message), "X-Mailer",
+ "Ximian Evolution " VERSION SUB_VERSION " " VERSION_COMMENT);
+
m = mail_msg_new (&append_mail_op, NULL, sizeof (*m));
m->folder = folder;
camel_object_ref(folder);