incorrect Date header
Hi,
mlmmj's Date header is possibly not RFC2822 compliant (discovered by spamassassin, not by me). The attached patch fixes this.
strgen.c +1 -2
@@ -246,7 +246,6 @@/* 6 + 26 + ' ' + timezone which is 5 + '\n\0' == 40 */ timestr = (char *)malloc (40 ); -strcpy (timestr,"Date: " ); t =time (NULL );localtime_r (&t, <tm);
@@ -311,7 +310,7 @@ } -snprintf (timestr,40 ,"Date: %s, %02d %s %d %d:%d:%d %+05d\n" , +snprintf (timestr,40 ,"Date: %s, %02d %s %04d %02d:%02d:%02d %+05d\n" , weekday, lttm.tm_mday, month, lttm.tm_year +1900 , lttm.tm_hour, lttm.tm_min, lttm.tm_sec, ((int )t)/36 );
Mads Martin Joergensen
AppliedQuoted 4 lines · Jakob Hirsch
Hi,
mlmmj's Date header is possibly not RFC2822 compliant (discovered by spamassassin, not by me). The attached patch fixes this.
Thanks applied to CVS.
Signature · 4 lines
Mads Martin Joergensen, http://mmj.dk
"Why make things difficult, when it is possible to make them cryptic
and totally illogical, with just a little bit more effort?"
-- A. P. J.