From dd2be9ac1faf1e9107ba153cd97dc3d0ab871d22 Mon Sep 17 00:00:00 2001 From: foobar Date: Fri, 6 Jan 2006 00:35:40 +0000 Subject: [PATCH] - Fixed bug #35906 (win32: mail() Date: header is not RFC compliant) --- win32/sendmail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/win32/sendmail.c b/win32/sendmail.c index 55868d68a4..af7631f7f9 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -713,7 +713,7 @@ int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders) zonem = (abs(_timezone) / 60) - (zoneh * 60); if(!xheaders || !strstr(headers_lc, "date:")){ - sprintf(header_buffer, "Date: %s, %02d %s %04d %02d:%02d:%02d %s%02d%02d\r\n", + sprintf(header_buffer, "Date: %3s, %02d %3s %04d %02d:%02d:%02d %c%02d%02d\r\n", days[tm->tm_wday], tm->tm_mday, months[tm->tm_mon], -- 2.40.0