🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92803

Re: Header ordering

#92803
From: InterLinked
Date: Thu, 21 May 2026 04:22
94 lines
6223 bytes
On 5/20/2026 11:37 PM, Russ Allbery wrote:
> InterLinked <nntp@phreaknet.org> writes:
> 
>> But RFC 5537 says that Path MUST be removed for duplicate injection
> 
> I'm not sure what you mean by duplicate injection. The Path header MUST be
> removed or renamed when reinjecting an article that was already injected
> elsewhere (as opposed to multiple injection done by offering the same
> proto-article to a bunch of injecting agents at the same time).

Sorry, I did mean multiple injection. RFC 5537 3.4.2: "articles found on 
one Netnews network to another supposedly unconnected one... posting 
agent MUST remove... Path"

> That's because presumably it already has a .POSTED component and it can't be
> injected again with that present.

It makes sense, but I would think the .POSTED component could be removed 
and the others retain, so that the rest of the path is preserved when 
reposting it, rather than neutering the existing path history.

>> and elsewhere only says the Path header SHOULD NOT contain .POSTED, not
>> that it MUST NOT exist...
> 
> I think that SHOULD NOT is a minor bug in the standard, since the
> injecting agent MUST reject articles that contain a .POSTED segment (see
> 3.5). So in practice a .POSTED segment MUST NOT be present in a
> proto-article if you want to successfully post it. Maybe we left it as
> SHOULD NOT because it would work with a pre-RFC-5537 injecting agent?
> Seems like an oversight, though.

I would agree, I sort of treated it as a MUST NOT anyhow as the other 
context seemed to suggest such.


Speaking of Path, in looking at examples of headers in Usenet articles, 
I found this (as just one substring in the path): "!fx18.iad.POSTED!"

I *think* this is ill-formed, as it doesn't seem valid from RFC 5537. 
"!.POSTED.fx18.iad!" would be but I think they did it backwards. And 
INN's check for already injected articles requires .POSTED be at the 
beginning or preceded by "!", so would not recognize this. (It would, 
however, recognize ".posted", even though I haven't seen that yet).

It seems it might be beneficial to recognize ".POSTED" even when not at 
the beginning of string, to account for incorrect servers like this one 
(assuming this is indeed incorrect). Or maybe whatever INN is doing and 
a case-sensitive match for ".POSTED!" to reduce false positives when 
looking for non-compliant path elements. Then again, there are other 
ways of detecting injection so maybe that's why INN is strictly 
compliant? Or maybe nobody has thought about this previously?

(Or as stated above, since it only says SHOULD NOT contain .POSTED, 
either way, INN isn't wrong not to recognize this.)

>> Another more direct conflict: 3.4.1 says Injection-Date MUST be supplied
>> for multiple injection, but 3.5 #1 says if both Date and Message-ID are
>> already present, Injection-Date MUST NOT be added, so it is seemingly
>> impossible to satisfy both requirements at once here?
> 
> Those are two different pieces of software that have different
> requirements. Section 3.5 is about the duties of the news *server*
> (specifically, the component that accepts POST commands), not the client
> like 3.4.1.

But in certain cases, they could be the same host, as in my example of 
receiving an article from a peer and sending it to Usenet via a reading 
connection, i.e. now behaving like a client. In this situation, if Date 
and Message-ID are already present in the article, but not 
Injection-Date, but then a reading connection is used to post to Usenet, 
now it is impossible to comply with both requirements... the server 
can't add the Injection-Date header if it isn't already present, yet it 
is required to provide one if this is considered a "multiple injection".

I'm slightly leaning towards not adding Injection-Date being more 
logical, since the only way that the article could somehow make its way 
to Usenet in this scenario by another path were if the original reading 
client did multiple injection, then it should've had the header, so not 
having it implies it wasn't. But maybe that's already taking too many 
liberties...

>> On the other hand, I would think a server would not want a client to set
>> this to something different (e.g. Bell Laboratories), since the
>> Organization is a reflection of the originating server rather than a
>> poster, so it feels like it would be reasonable to reject articles that
>> had one.
> 
> Nah. In practice, Organization is a free-form field into which posters can
> put anything they want (and do). The standard allows either the client or
> the server to set it, but in practice, I'd just leave it to the client.
> It's not really useful for anything beyond easter eggs (and never really
> has been).

Noted, thank you.
Technical Details
Message-ID: <10um19v$g84b$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <10uj0fp$3l4ia$1@dont-email.me> <871pf6etan.fsf@hope.eyrie.org> <10uj6ai$3mf5n$1@dont-email.me> <877boyd6bq.fsf@hope.eyrie.org> <10uloev$ecvd$1@dont-email.me> <87lddd8mbc.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: InterLinked <nntp@phreaknet.org>
Newsgroups: news.software.nntp
Subject: Re: Header ordering
Date: Thu, 21 May 2026 00:22:23 -0400
Organization: A noiseless patient Spider
Lines: 94
Message-ID: <10um19v$g84b$1@dont-email.me>
References: <10uj0fp$3l4ia$1@dont-email.me> <871pf6etan.fsf@hope.eyrie.org>
 <10uj6ai$3mf5n$1@dont-email.me> <877boyd6bq.fsf@hope.eyrie.org>
 <10uloev$ecvd$1@dont-email.me> <87lddd8mbc.fsf@hope.eyrie.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 21 May 2026 04:22:23 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="532619"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19QOWJBR+6ey7g7wXkKJBRNIMMJ1YfGtgA="; posting-host="13b54daa546a4752abec19e10d7dc53f"
Cancel-Lock: sha1:lDZW/Us4UnLGk+YtAy4dtPW8oaY= sha256:awCFhwdpWL07HqzU3fS5O0nHpao/8Kd01kdYwiGoShs=
	sha1:U4ES3jbmzcMeoXdAlFhyAnalxKs=
Content-Language: en-US
X-Mailer: MailNews/52.9.9224a1
In-Reply-To: <87lddd8mbc.fsf@hope.eyrie.org>