Article View: news.software.nntp
Article #92374Re: INN laxmid clarification
From: Russ Allbery
Date: Sat, 30 Aug 2025 18:19
Date: Sat, 30 Aug 2025 18:19
46 lines
3136 bytes
3136 bytes
Jesse Rehmer <jesse.rehmer@blueworldhosting.com> writes:
> This does get past the Message-ID header issue, but presents a new one with
> the Date header.
> 437 Bad "Date" header field -- "Fri Jul 9 03:46:46 1982"
> I was looking at lib/date.c but it's a bit complex for me to digest. I
> see references in comments to "lax mode" and not sure if this is an
> undocumented option or maybe removed in the past?
innd always uses lax mode for date parsing.
That date is in ctime(3) format, which isn't supported by INN even in lax
mode. That format was already forbidden in the first article format
standard (RFC 850) from June 1983, and a lot of articles before that are
in the completely incompatible A News format that INN has never attempted
to parse. It looks like you have a transitional article that is in B News
format but is still using the ctime(3) format for Date.
RFC 850 says:
Note in particular that ctime format:
Wdy Mon DD HH:MM:SS YYYY
is not acceptable because it is not a valid ARPANET date.
However, since older software still generates this format,
news implementations are encouraged to accept this format
and translate it into an acceptable format.
I wouldn't object to supporting this in INN in lax mode, but it's not
entirely trivial to add without accidentally breaking something else
because the order of the date elements is significantly different than a
standardized date. It would take someone a bit of time to figure out how
to safely incorporate it into parsedate_rfc5322_lax. (For example, the
code that skips over a leading day of the week would also currently skip
over the month.) It might be easiest to add a separate ctime parser and to
just attempt a ctime parse whenever the date is otherwise invalid. I'm not
sure how wide of a range of formats the old ctime dates came in.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87ms7g7jvb.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mailReferences:
<u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com> <ua59ms$cqti$1@news.trigofacile.com> <108u6vi$1nhp$1@nnrp.usenet.blueworldhosting.com> <108v6jk$vqr6$1@news.trigofacile.com> <108vc8u$nji$1@nnrp.usenet.blueworldhosting.com>Show Full Headers
Complete Article Headers
Message-ID: <87ms7g7jvb.fsf@hope.eyrie.org> Subject: Re: INN laxmid clarification Date: Sat, 30 Aug 2025 11:19:20 -0700 From: Russ Allbery <eagle@eyrie.org> References: <u90srm$2mhb$1@nnrp.usenet.blueworldhosting.com> <ua59ms$cqti$1@news.trigofacile.com> <108u6vi$1nhp$1@nnrp.usenet.blueworldhosting.com> <108v6jk$vqr6$1@news.trigofacile.com> <108vc8u$nji$1@nnrp.usenet.blueworldhosting.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.pugleaf.net!ygg-srl.newsdeef.eu!srl.newsdeef.eu!weretis.net!feeder8.news.weretis.net!news.szaf.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie MIME-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; logging-data="16999"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:HqET0E9rCuL2+n35tFA59jPTeoQ=