diff options
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r-- | mail/mail-ops.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c index ece3fe493d..94cd42fae0 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -397,6 +397,18 @@ ask_confirm_for_empty_subject (EMsgComposer *composer) } static void +set_x_mailer_header (CamelMedium *medium) +{ + char *mailer_string; + + mailer_string = g_strdup_printf ("Evolution %s (Developer Preview)", VERSION); + + camel_medium_add_header (medium, "X-Mailer", mailer_string); + + g_free (mailer_string); +} + +static void real_send_mail (gpointer user_data) { rsm_t *info = (rsm_t *) user_data; @@ -421,9 +433,9 @@ real_send_mail (gpointer user_data) from = info->from; psd = info->psd; + set_x_mailer_header (CAMEL_MEDIUM (message)); + camel_mime_message_set_from (message, from); - camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer", - "Evolution (Developer Preview)"); camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0); camel_service_connect (CAMEL_SERVICE (transport), ex); |