🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #80524

Re: what does a Date header look like?

#80524
From: Alexander Bartolich
Date: Mon, 06 Apr 2009 11:33
42 lines
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)

-- 
Technical Details
Message-ID: <grcpac$j4i$1@news.albasani.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.albasani.net!not-for-mail
References: <grcnc1$2uip$1@munin.diku.dk>

Show Full Headers
Complete Article Headers
Message-ID: <grcpac$j4i$1@news.albasani.net>
Subject: Re: what does a Date header look like?
Date: Mon, 06 Apr 2009 11:33:32 +0000
From: Alexander Bartolich <alexander.bartolich@gmx.at>
References: <grcnc1$2uip$1@munin.diku.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.straub-nv.de!news.albasani.net!not-for-mail
Newsgroups: news.software.nntp
Organization: albasani.net
Lines: 42
X-Trace: news.albasani.net
 TUBrVThDhtQQkOsCMQPZ+yPaWcsTEES6c2CNUIeJr6SGPSSplhzUf2ctgZ2ZI4FumOHI0yqmv8bKmleKSVcfGB/80nyxZUo7KD5CNDBS6Q8wFFSH7+skfb/UPDmNH3+r
X-Complaints-To: abuse@albasani.net
NNTP-Posting-Date: Mon, 6 Apr 2009 11:33:32 +0000 (UTC)
X-User-ID: YekrDNxz644LNIiIfGtfirJU5cQJuCUsu/sClAtjk4NNaHU8gixba5gBhIQflH6f2yVJ9adu57qdak85IKSgHw==
Cancel-Lock: sha1:Hln3/gPhkJqalUB3umfMhWc5bK8=
 sha1:LmEoa7yQx1FLhjAp9QPj7VlbDlo=
User-Agent: slrn/0.9.8.1pl1 (Debian)
X-NNTP-Posting-Host: DEJlkvPU4GPPoKWYb58WXH+TUPHrp72/DP20M15ysHo=