diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-07-16 12:32:01 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-07-16 12:32:01 +0800 |
commit | 77bd9350a997d53fe353f2fc45e41bc95d268a5d (patch) | |
tree | 10269393cc8788829de395fe769d6cf64e322a52 /mail/mail-ops.c | |
parent | e434c672e40eb8e6002067920ad760c0e0b563ed (diff) | |
download | gsoc2013-evolution-77bd9350a997d53fe353f2fc45e41bc95d268a5d.tar gsoc2013-evolution-77bd9350a997d53fe353f2fc45e41bc95d268a5d.tar.gz gsoc2013-evolution-77bd9350a997d53fe353f2fc45e41bc95d268a5d.tar.bz2 gsoc2013-evolution-77bd9350a997d53fe353f2fc45e41bc95d268a5d.tar.lz gsoc2013-evolution-77bd9350a997d53fe353f2fc45e41bc95d268a5d.tar.xz gsoc2013-evolution-77bd9350a997d53fe353f2fc45e41bc95d268a5d.tar.zst gsoc2013-evolution-77bd9350a997d53fe353f2fc45e41bc95d268a5d.zip |
Put the version number in the `X-Mailer:' header instead of just
"Developer Preview".
svn path=/trunk/; revision=4179
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); |