aboutsummaryrefslogtreecommitdiffstats
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
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
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-ops.c10
2 files changed, 7 insertions, 8 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index d9b65aefb5..87343914e4 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2001-01-16 Dan Winship <danw@ximian.com>
+
+ * mail-ops.c (send_mail_send, do_send_queue): Update the X-Mailer
+ header to use the string specified by configure.
+
2001-01-16 Jason Leach <jasonleach@usa.net>
* subscribe-dialog.c: removed unecessary #inlcude "e-title-bar.h"
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);