aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@infradead.org>2003-07-02 02:10:17 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-07-02 02:10:17 +0800
commit03b5e1899b556feb73af85b2dea61f3c7ca0d057 (patch)
treec6e5a9bd7347a15630f6ae06c3c37a482eb48c80
parente38e234f3e09b840fd20adc6cb612b37d1e544da (diff)
downloadgsoc2013-evolution-03b5e1899b556feb73af85b2dea61f3c7ca0d057.tar.gz
gsoc2013-evolution-03b5e1899b556feb73af85b2dea61f3c7ca0d057.tar.zst
gsoc2013-evolution-03b5e1899b556feb73af85b2dea61f3c7ca0d057.zip
Put day of week into outgoing email.
2003-06-24 David Woodhouse <dwmw2@infradead.org> * camel-mime-utils.c (header_format_date): Put day of week into outgoing email. svn path=/trunk/; revision=21710
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-mime-utils.c7
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,