Put the version number in the `X-Mailer:' header instead of just

"Developer Preview".

svn path=/trunk/; revision=4179
This commit is contained in:
Ettore Perazzoli
2000-07-16 04:32:01 +00:00
parent e434c672e4
commit 77bd9350a9
3 changed files with 26 additions and 2 deletions

View File

@ -1,3 +1,14 @@
2000-07-15 Ettore Perazzoli <ettore@helixcode.com>
* mail-ops.c (set_x_mailer_header): New helper function to set the
`X-Mailer:' header to to `Evolution <version> [Developer
Preview]".
(real_send_mail): Call it.
2000-07-14 Ettore Perazzoli <ettore@helixcode.com>
* Makefile.am (evolution_mail_LDADD): Add `GCONF_LIBS'.
2000-07-14 Dan Winship <danw@helixcode.com>
* mail-format.c (write_headers): put a <p> at the end of the

View File

@ -72,6 +72,7 @@ evolution_mail_LDADD = \
$(top_builddir)/filter/libfilter.la \
$(BONOBO_VFS_GNOME_LIBS) \
$(GTKHTML_LIBS) \
$(GCONF_LIBS) \
$(THREADS_LIBS) \
$(UNICODE_LIBS)

View File

@ -396,6 +396,18 @@ ask_confirm_for_empty_subject (EMsgComposer *composer)
return FALSE;
}
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)
{
@ -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);