Re: Date header

Patrik Rådman <[email protected]>
Newsgroups gmane.network.sn
Message-ID <[email protected]>
Gabor Z. Papp <[email protected]> wrote:
> * Gabor Z. Papp <[email protected]>:
> 
> | sn rewrites the Date: header at posts?
> 
> Seems like...

It should only do it if the message didn't already have a Date: header.

> And the rewritten format is obsolote, at least the "GMT"
> part. Should be fixed to "+0000" because it breaks the
> threading on several MUAs.

Good point. Actually, after checking RFC 2822 section 3.3 I think it should be
"-0000". :) Patch below.


--- ../sn-0.3.5/snsend.c        Thu May 23 01:15:16 2002
+++ snsend.c    Tue Aug  6 01:25:56 2002
@@ -773,7 +771,7 @@
       memcpy(p, days[tmp->tm_wday], 3);
       appendhead("Date: ", sizeof ("Date: ") - 1);
       appendhead(p, strlen(p));
-      appendhead(" GMT\r\n", 6);
+      appendhead(" -0000\r\n", 6);
       LOG3("added Date to article \"%s\"", messageid);
    }



-- 
  Patrik Rådman  ·  patrik at iki dot fi  ·  http://www.iki.fi/patrik/
                     "Now, where was I?"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.