🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #90408

Re: [inn] Header folded immediately after header name results in "invalid syntax encountered" posting error

#90408
From: Julien ÉLIE
Date: Wed, 07 Jun 2023 08:21
52 lines
3561 bytes
Hi Urs,

> I still think allowing FWS in Path is/was more asking for trouble than
> needed.
> I know that a lot of older software had/has issues with FWS in
> general and 992 bytes is plenty of space for Path, esp. if you avoid the
> often quite useless verification info.

Yes I understand the point and the change from Son of 1036.

If the Path header field does not allow FWS, the problem that would have 
been to delt with in RFC 5536/5537 is Path trimming.  As an FQDN can 
have about 254 characters, and path diagnostics can also add a MISMATCH 
with an additional FQDN, and a server can add several path identities... 
in theory we could reach the maximum allowed length in only 1 hop!
Or 3 hops if not taking into account path diagnostics and several path 
identities.

It would have been something to explain, limit and standardize.
Instead of using the already existing FWS mechanism specifically 
designed to treat such folding in large header fields.

Well, we cannot do much about that now.
Maybe to add more interoperability coverage, adding an RFC erratum to 
say that Path folding SHOULD be avoided when possible, and SHOULD occur 
only when the addition of a path identity or diagnostic would make the 
header field larger than 998 bytes?



> The same goes for at least Date, Newsgroups and Followup-To.

As for Date, the CFWS is only at the end of the field, so normally the 
parsing should be fine in only the first line:

date-time       =   [ day-of-week "," ] date time [CFWS]
day-of-week     =   ([FWS] day-name) / obs-day-of-week

          NOTE: The [RFC5322] specification sometimes uses [FWS] at the
          beginning or end of ABNF describing header field content.  This
          specification uses *WSP in such cases, also in cases where this
          specification redefines constructs from [RFC5322].


Maybe the suggested RFC erratum about Path folding could include these 3 
additional fields.

-- 
Julien ÉLIE

« Le tennis c'est comme le ping-pong, sauf qu'au tennis, les joueurs
   sont debout sur la table. »
Technical Details
Message-ID: <u5pem4$14cr0$1@news.trigofacile.com>
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
References: <u5o2l1$lml$1$arnold@news.chmurka.net> <87zg5ci1f8.fsf@hope.eyrie.org> <u5p4ue$stl$1@nntp.de> <87ilbzn84g.fsf@hope.eyrie.org> <u5p8p9$14ac4$1@news.trigofacile.com> <u5pbme$us2$1@nntp.de>

Show Full Headers
Complete Article Headers
Message-ID: <u5pem4$14cr0$1@news.trigofacile.com>
Subject: Re: [inn] Header folded immediately after header name results in "invalid syntax encountered" posting error
Date: Wed, 7 Jun 2023 10:21:24 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <u5o2l1$lml$1$arnold@news.chmurka.net> <87zg5ci1f8.fsf@hope.eyrie.org> <u5p4ue$stl$1@nntp.de> <87ilbzn84g.fsf@hope.eyrie.org> <u5p8p9$14ac4$1@news.trigofacile.com> <u5pbme$us2$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-mail
Newsgroups: news.software.nntp
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 7 Jun 2023 08:21:24 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="1192800"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.11.2
Cancel-Lock: sha1:ldx7pv1GB9Km9k6U5UjjIvnciHw= sha256:HgK7i/AA3csrYK0IZOyEj2Xv7HdcybZtPj5OJEGRZTo= sha1:6I6c8SmXobrOqnW1OC2K5C9MAo8= sha256:wzALtDfh7/BGneAqqqtIw6Pm8U0/MZHumKA9wVuRA7A=
In-Reply-To: <u5pbme$us2$1@nntp.de>