aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2001-01-17 03:43:57 +0800
committerDan Winship <danw@src.gnome.org>2001-01-17 03:43:57 +0800
commit83f1dbfe4daa588f9167daeac11ec68f611df1c2 (patch)
treea9f873eb70bbd519da618222c2dd7c05ac344281 /mail/mail-ops.c
parentaf465f8d67ac84a6c5083dd58b79a5065db3ef24 (diff)
downloadgsoc2013-evolution-83f1dbfe4daa588f9167daeac11ec68f611df1c2.tar
gsoc2013-evolution-83f1dbfe4daa588f9167daeac11ec68f611df1c2.tar.gz
gsoc2013-evolution-83f1dbfe4daa588f9167daeac11ec68f611df1c2.tar.bz2
gsoc2013-evolution-83f1dbfe4daa588f9167daeac11ec68f611df1c2.tar.lz
gsoc2013-evolution-83f1dbfe4daa588f9167daeac11ec68f611df1c2.tar.xz
gsoc2013-evolution-83f1dbfe4daa588f9167daeac11ec68f611df1c2.tar.zst
gsoc2013-evolution-83f1dbfe4daa588f9167daeac11ec68f611df1c2.zip
Update the X-Mailer header to use the string specified by configure.
* mail-ops.c (send_mail_send, do_send_queue): Update the X-Mailer header to use the string specified by configure. svn path=/trunk/; revision=7540
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 47a7933e70..aed29afd45 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -556,7 +556,7 @@ static void send_mail_send(struct _mail_msg *mm)
CamelTransport *xport;
FilterContext *context;
- camel_medium_add_header(CAMEL_MEDIUM (m->message), "X-Mailer", "Evolution " VERSION " (Developer Preview)");
+ camel_medium_add_header(CAMEL_MEDIUM (m->message), "X-Mailer", "Evolution (" XMAILER_VERSION " - Preview Release)");
camel_mime_message_set_date(m->message, CAMEL_MESSAGE_DATE_CURRENT, 0);
xport = camel_session_get_transport(session, m->uri, &mm->ex);
@@ -682,7 +682,6 @@ do_send_queue (gpointer in_data, gpointer op_data, CamelException *ex)
extern CamelFolder *sent_folder;
CamelTransport *xport;
GPtrArray *uids;
- char *x_mailer;
guint32 set;
int i;
@@ -690,9 +689,6 @@ do_send_queue (gpointer in_data, gpointer op_data, CamelException *ex)
if (!uids)
return;
- x_mailer = g_strdup_printf ("Evolution %s (Developer Preview)",
- VERSION);
-
for (i = 0; i < uids->len; i++) {
CamelMimeMessage *message;
char *transport_url = NULL;
@@ -701,7 +697,7 @@ do_send_queue (gpointer in_data, gpointer op_data, CamelException *ex)
if (camel_exception_is_set (ex))
break;
- camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer", x_mailer);
+ camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer", "Evolution (" XMAILER_VERSION " - Preview Release)");
camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0);
@@ -739,8 +735,6 @@ do_send_queue (gpointer in_data, gpointer op_data, CamelException *ex)
}
}
- g_free (x_mailer);
-
for (i = 0; i < uids->len; i++)
g_free (uids->pdata[i]);
g_ptr_array_free (uids, TRUE);