aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-ops.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-ops.c')
-rw-r--r--mail/mail-ops.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/mail/mail-ops.c b/mail/mail-ops.c
index 54bc2dbbf8..b0a001301c 100644
--- a/mail/mail-ops.c
+++ b/mail/mail-ops.c
@@ -427,14 +427,11 @@ mail_send_message (CamelMimeMessage *message, const char *destination,
char *transport_url = NULL;
char *sent_folder_uri = NULL;
CamelFolder *folder;
- const char *version;
XEvolution *xev;
- if (SUB_VERSION[0] == '\0')
- version = "Evolution/" VERSION " (Preview Release)";
- else
- version = "Evolution/" VERSION SUB_VERSION " (Preview Release)";
- camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer", version);
+ camel_medium_add_header (CAMEL_MEDIUM (message), "X-Mailer",
+ "Evolution/" VERSION SUB_VERSION PREVIEW_RELEASE);
+
camel_mime_message_set_date (message, CAMEL_MESSAGE_DATE_CURRENT, 0);
xev = mail_tool_remove_xevolution_headers (message);