diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-28 10:31:06 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2005-06-28 10:31:06 +0000 |
commit | 524170a27870e583b8077bc4a35cfd0721458f18 (patch) | |
tree | f0dec5983835ac887eb0c615cbc0236930620866 /src/utils.c | |
parent | 4ff95821bf86ac49108ba641c56c4287243eef09 (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/utils.c')
-rw-r--r-- | src/utils.c | 3 |
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"); |