diff options
-rw-r--r-- | camel/ChangeLog | 5 | ||||
-rw-r--r-- | camel/camel-mime-utils.c | 7 |
2 files changed, 11 insertions, 1 deletions
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 <dwmw2@infradead.org> + + * camel-mime-utils.c (header_format_date): Put day of week into + outgoing email. + 2003-06-25 Jeffrey Stedfast <fejj@ximian.com> * 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, |