All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jakob Hirsch <jh@plonk.de>
To: mlmmj@mlmmj.org
Subject: incorrect Date header
Date: Fri, 13 May 2005 17:53:56 +0000	[thread overview]
Message-ID: <4284E9B4.9020406@plonk.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 132 bytes --]

Hi,

mlmmj's Date header is possibly not RFC2822 compliant (discovered by 
spamassassin, not by me). The attached patch fixes this.

[-- Attachment #2: mlmmj-date.diff --]
[-- Type: text/plain, Size: 561 bytes --]

--- strgen.c	2005-05-13 19:32:46.000000000 +0200
+++ strgen.c	2005-05-13 19:37:43.000000000 +0200
@@ -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, &lttm);
@@ -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);


             reply	other threads:[~2005-05-13 17:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-13 17:53 Jakob Hirsch [this message]
2005-05-16 10:30 ` incorrect Date header Mads Martin Joergensen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4284E9B4.9020406@plonk.de \
    --to=jh@plonk.de \
    --cc=mlmmj@mlmmj.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.