Article View: news.software.nntp
Article #90404Re: [inn] Header folded immediately after header name results in "invalid syntax encountered" posting error
From: Urs Janßen
Date: Wed, 07 Jun 2023 05:35
Date: Wed, 07 Jun 2023 05:35
37 lines
2786 bytes
2786 bytes
Russ Allbery wrote: > Header field lines do not have to be folded unless they contain RFC 2047 > encoding (which the Message-ID header field may not), and may be as long > as 998 octets, and the maximum length of an FQDN is 254 octets if I > remember correctly. That leaves plenty of space. News software does not > expect a folded Message-ID and I suspect INN is far from the only piece of It's even more restrictive (RFC 5536 3.1.3) | msg-id = "<" msg-id-core ">" | ; maximum length is 250 octets | msg-id-core = id-left "@" id-right [...] | The <msg-id> MUST NOT be more than 250 octets in length. | | NOTE: The length restriction ensures that systems that accept | message identifiers as a parameter when referencing an article | (e.g., [RFC3977]) can rely on a bounded length. | | Observe that <msg-id> includes the < and >. > software that would break. It may not look aesthetically pleasing to have > a long line, but the standard effectively requires it. > > I would, in general, never fold Path, Message-ID, or Date, since these are > critical fields for the Netnews protocol and a lot of existing software > isn't going to handle it correctly. I think there are provisions in the > standard for folding Path (I don't recall whether we restricted the Date > syntax to disallow folding), but if you want to maximize how interoperable > the articles are, it's best to avoid those provisions. Unfortunately (one of the changes from RFC 1036 which I did not like as some programs may be not aware of this) Path can "now" be folded (RFC 5536 3.1.5): | path = "Path:" SP *WSP path-list tail-entry *WSP CRLF | path-list = *( path-identity [FWS] [path-diagnostic] "!" )
Technical Details
Message-ID:
<u5p4ue$stl$1@nntp.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<u5o2l1$lml$1$arnold@news.chmurka.net> <87zg5ci1f8.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <u5p4ue$stl$1@nntp.de>
Subject: Re: [inn] Header folded immediately after header name results in "invalid syntax encountered" posting error
Date: Wed, 07 Jun 2023 05:35:40 +0000
From: Urs Janßen <urs@buil.tin.org>
References: <u5o2l1$lml$1$arnold@news.chmurka.net> <87zg5ci1f8.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.software.nntp
Organization: tin.org
Archive: no
Injection-Date: Wed, 7 Jun 2023 05:35:40 -0000 (UTC)
Injection-Info: nntp.de; posting-host="akk21-int.akk.kit.edu:2a00:1398:5:f602:cafe:cafe:cafe:21"; logging-data="29621"; mail-complaints-to="abuse@nntp.de"
User-Agent: tin/2.6.3-20230505 ("Pittyvaich") (Linux/4.19.0-23-amd64 (x86_64))
Cancel-Lock: sha1:rN/V9VzbLEyVHHwSbaWKYwxOF9U=
X-No-Archive: yes
X-No-Html: yes