Article View: news.software.nntp
Article #90403Re: [inn] Header folded immediately after header name results in "invalid syntax encountered" posting error
From: Russ Allbery
Date: Wed, 07 Jun 2023 00:03
Date: Wed, 07 Jun 2023 00:03
32 lines
2500 bytes
2500 bytes
gof-cut-this-news@cut-this-chmurka.net.invalid (Adam W.) writes:
> The real life example is when Message-ID body is too long to fit in the
> same line with the header name (and that's why I detected it and started
> digging).
Urs posted the correct standards reference. I just wanted to add that you
should never fold the Message-ID for Netnews articles. (Which is a
somewhat obvious consequence of the standards rule about having some
non-whitespace characters on the header field line, but is worth
reiterating separately.)
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
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.
--
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:
<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-mailReferences:
<u5o2l1$lml$1$arnold@news.chmurka.net>Show Full Headers
Complete Article Headers
Message-ID: <87zg5ci1f8.fsf@hope.eyrie.org> Subject: Re: [inn] Header folded immediately after header name results in "invalid syntax encountered" posting error Date: Tue, 06 Jun 2023 17:03:23 -0700 From: Russ Allbery <eagle@eyrie.org> References: <u5o2l1$lml$1$arnold@news.chmurka.net> 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: The Eyrie Mime-Version: 1.0 Content-Type: text/plain Injection-Info: hope.eyrie.org; logging-data="17849"; mail-complaints-to="news@eyrie.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) Cancel-Lock: sha1:BQzetnTpz3wYkM4Y6JJNf9cqTO8=