Thread View: news.software.nntp
4 messages
4 total messages
Started by Jon Bendtsen
Mon, 06 Apr 2009 11:00
what does a Date header look like?
Author: Jon Bendtsen
Date: Mon, 06 Apr 2009 11:00
Date: Mon, 06 Apr 2009 11:00
18 lines
1520 bytes
1520 bytes
Hi I have some Subversion change emails that i try to post using mailpost. The error i get is: inews failed: inews: cannot send article to server: 441 \ Can't parse "Date" header inews: article not posted The Date header looks like this: Date: Sun Apr 5 21:43:28 2009 Date: Sun Apr 5 23:40:59 2009 Date: Mon Apr 6 08:24:42 2009 But what should it look like and is the fault in mailpost not being accepting enough or the subversion email changes script? There is probably one or more agreed standards.
Re: what does a Date header look like?
Author: Alexander Bartolich
Date: Mon, 06 Apr 2009 11:33
Date: Mon, 06 Apr 2009 11:33
42 lines
2556 bytes
2556 bytes
Jon Bendtsen wrote: > I have some Subversion change emails that i try to post using > mailpost. The error i get is: > > inews failed: inews: cannot send article to server: 441 \ > Can't parse "Date" header inews: article not posted > > The Date header looks like this: > > Date: Sun Apr 5 21:43:28 2009 > Date: Sun Apr 5 23:40:59 2009 > Date: Mon Apr 6 08:24:42 2009 That's funny. Your script writes a date format that is explicitly forbidden by ancient RFC 850 (published June 1983). http://tools.ietf.org/html/rfc850 # 2.1.4 Date # # The Date line (formerly "Posted") is the date, in a format that must # be acceptable both to the ARPANET and to the getdate routine, that # the article was originally posted to the network. This date remains # unchanged as the article is propagated throughout the # network. One format that is acceptable to both is # # Weekday, DD-Mon-YY HH:MM:SS TIMEZONE # # Several examples of valid dates appear in the sample # article above. Note in particular that ctime format: # # Wdy Mon DD HH:MM:SS YYYY # # is not acceptable because it is not a valid ARPANET date. > But what should it look like and is the fault in mailpost not being > accepting enough or the subversion email changes script? The date format generated by INN looks like this: Date: Mon, 6 Apr 2009 10:15:09 +0000 (UTC) --
Re: what does a Date header look like?
Author: Jeffrey M. Vinocur
Date: Mon, 06 Apr 2009 11:36
Date: Mon, 06 Apr 2009 11:36
21 lines
1618 bytes
1618 bytes
In article <grcnc1$2uip$1@munin.diku.dk>,
Jon Bendtsen <noone@example.com> wrote:
>
> Date: Sun Apr 5 21:43:28 2009
> Date: Sun Apr 5 23:40:59 2009
> Date: Mon Apr 6 08:24:42 2009
>
>But what should it look like and is the fault in mailpost not being
>accepting enough or the subversion email changes script?
I think it is the absence of a time zone that is getting you in
trouble.
See section 3.1.1 of the USEFOR draft (which will point you to
RFC 2822 for more detail):
http://tools.ietf.org/html/draft-ietf-usefor-usefor-12
--
Jeffrey M. Vinocur
jeff@litech.org
Re: what does a Date header look like?
Author: Jon Bendtsen
Date: Mon, 06 Apr 2009 11:51
Date: Mon, 06 Apr 2009 11:51
26 lines
1960 bytes
1960 bytes
Alexander Bartolich wrote: > Jon Bendtsen wrote: >> I have some Subversion change emails that i try to post using >> mailpost. The error i get is: >> >> inews failed: inews: cannot send article to server: 441 \ >> Can't parse "Date" header inews: article not posted >> >> The Date header looks like this: >> >> Date: Sun Apr 5 21:43:28 2009 >> Date: Sun Apr 5 23:40:59 2009 >> Date: Mon Apr 6 08:24:42 2009 > > That's funny. Your script writes a date format that is explicitly > forbidden by ancient RFC 850 (published June 1983). Thank you for the clear answer. It looks like i have to modify the subversion mailer.py script (which is not mine). For the record i found a similar bug that was fixed in a different subversion email changes script. http://subversion.tigris.org/issues/show_bug.cgi?id=2633 JonB
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads