From 03b5e1899b556feb73af85b2dea61f3c7ca0d057 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Tue, 1 Jul 2003 18:10:17 +0000 Subject: Put day of week into outgoing email. 2003-06-24 David Woodhouse * camel-mime-utils.c (header_format_date): Put day of week into outgoing email. svn path=/trunk/; revision=21710 --- camel/ChangeLog | 5 +++++ camel/camel-mime-utils.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 9649e166bf..307bb936cc 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2003-06-24 David Woodhouse + + * camel-mime-utils.c (header_format_date): Put day of week into + outgoing email. + 2003-06-25 Jeffrey Stedfast * camel-folder-summary.h: Added prototype for diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 0cb3bbb10b..1b79a06955 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -3422,6 +3422,10 @@ static char *tz_months [] = { "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" }; +static char *tz_days [] = { + "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" +}; + char * header_format_date(time_t time, int offset) { @@ -3437,7 +3441,8 @@ header_format_date(time_t time, int offset) memcpy(&tm, gmtime(&time), sizeof(tm)); - return g_strdup_printf("%02d %s %04d %02d:%02d:%02d %+05d", + return g_strdup_printf("%s, %02d %s %04d %02d:%02d:%02d %+05d", + tz_days[tm.tm_wday], tm.tm_mday, tz_months[tm.tm_mon], tm.tm_year + 1900, tm.tm_hour, tm.tm_min, tm.tm_sec, -- cgit v1.2.3