aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-28 10:31:06 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2005-06-28 10:31:06 +0000
commit524170a27870e583b8077bc4a35cfd0721458f18 (patch)
treef0dec5983835ac887eb0c615cbc0236930620866 /src
parent4ff95821bf86ac49108ba641c56c4287243eef09 (diff)
overwrite Date: header with current time when sending from queue.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@382 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r--src/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils.c b/src/utils.c
index 3955a3ef..0e544f1a 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -2632,6 +2632,9 @@ gchar *get_outgoing_rfc2822_str(FILE *fp)
if (fgets(buf, sizeof(buf), fp) == NULL)
break;
}
+ } else if (!g_ascii_strncasecmp(buf, "Date:", 5)) {
+ get_rfc822_date(buf, sizeof(buf));
+ g_string_append_printf(str, "Date: %s\r\n", buf);
} else {
g_string_append(str, buf);
g_string_append(str, "\r\n");