From 524170a27870e583b8077bc4a35cfd0721458f18 Mon Sep 17 00:00:00 2001 From: hiro Date: Tue, 28 Jun 2005 10:31:06 +0000 Subject: 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 --- src/utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils.c') 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"); -- cgit v1.2.3