🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #88511

Re: Headers that exceed the length of 998 characters.

#88511
From: Franck
Date: Sun, 08 Nov 2020 05:10
37 lines
2825 bytes
Le 07/11/2020 à 23:57, Julien ÉLIE a écrit :

Hello Julien,

> Note that RFC 5536 does not mention any length limit for the References 
> header field.  Section 3.4.4 of RFC 5537 states that a posting agent 
> MUST trim the References header field when generating it.  Then 
> injecting agents MUST reject articles not syntactically correct with RFC 
> 5536
 >
 > So I believe such articles are conformant for injection, relaying and
 > serving.
 >

Of course, I already knew that there was no limit on the size of a 
header (by folding it into lines of a maximum of 998 characters, except 
for encoded headers which would have to be folded into lines of 76 
characters, for reading purposes).

But you did well to remind me of this RFC (!) since a slower reading 
would have allowed me not to miss the "BUT MAY ACCEPT" of this 
precaunisation: "Compliant software MUST NOT generate (but MAY accept) 
header field lines of more than 998 bytes".

Currently, I reject badly formed articles during a POST with an error 
message such as: 441 posting failed, 'NameOfHeader' header is too long.

My question, and it's a mistake not to have specified it, was about a 
client who uses the IHAVE command (a feed) and who offers me an article, 
already injected despite it being badly formed (The "References" exceed 
998 characters beacause it is not folded), like this one :

Message-ID: <05fe2d84-ce15-4a89-8d4a-a2046003d154n@googlegroups.com>


I therefore consider that the "BUT MAY ACCEPT" will remain what I have 
to remember? Right?
Technical Details
Message-ID: <C5fa77dac5f90fb8b.05100449@news.domain.invalid>
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: <C5fa6457572aefe46.06575864@news.domain.invalid> <ro78p4$oka$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <C5fa77dac5f90fb8b.05100449@news.domain.invalid>
Subject: Re: Headers that exceed the length of 998 characters.
Date: Sun, 8 Nov 2020 06:10:04 +0100
From: Franck <my@mail.is.invalid>
References: <C5fa6457572aefe46.06575864@news.domain.invalid> <ro78p4$oka$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
Newsgroups: news.software.nntp
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.1
Mime-Version: 1.0
In-Reply-To: <ro78p4$oka$1@news.trigofacile.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: fr
Content-Transfer-Encoding: 8bit
Organization: Somewhere in France.
Original-Injection-Date: Sun, 8 Nov 2020 06:10:04 +0100
Original-Injection-Info: news.domain.invalid; posting-host="bG9jYWxob3N0" ; logging-data="C5fa77dac5f90fb8b"; mail-complaints-to="abuse@domain.invalid"
Lines: 37
Nntp-Posting-Date: 08 Nov 2020 06:10:05 CET
Nntp-Posting-Host: 80.215.84.159
X-Trace: 1604812205 news-4.free.fr 6448 80.215.84.159:48244
X-Complaints-To: abuse@proxad.net