🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #92804

Re: Header ordering

#92804
From: Russ Allbery
Date: Thu, 21 May 2026 04:53
67 lines
4075 bytes
InterLinked <nntp@phreaknet.org> writes:
> On 5/20/2026 11:37 PM, Russ Allbery wrote:

>> 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.

I think that would be rather deceptive and would change the meaning of the
header. Renaming is surely better?

> 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.

Yup.

There are some things like that which predate the standard, or are just
from confused sites or sites that don't care about the standard. (But in
this case I think it's the former.)

> 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).

Recognize and do what with it, though? By the time the article has been
injected and is propagating, it's too late, unless you want to reject such
articles entirely, which is probably more destructive than is warranted.

>> 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.

I'm now really confused about what scenario you're describing; 3.5 is
irrelevant to such a client since there is no injecting agent involved in
either of those operations. That's just a case of reinjection. In that
case, you MUST NOT add an Injection-Date header if none is present. See
the third paragraph of 3.4.2. This is a case of gatewaying.

> 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...

I think the third paragraph of 3.4.2 is the relevant bit here, so I think
the problem is just that you thought 3.5 was relevant to this, but it's
not.

In any case, however you implement these components is an irrelevant
implementation detail from the perspective of the standard. Even if one
piece of software is performing the duties of multiple components, it
still needs to walk through the duties in order, and in that case there's
no conflict or contradiction that I can see.

-- 
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: <87h5o18isg.fsf@hope.eyrie.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.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> <10um19v$g84b$1@dont-email.me>

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!nntp-feed.chiark.greenend.org.uk!ewrotcd!news.eyrie.org!.POSTED!not-for-mail
From: Russ Allbery <eagle@eyrie.org>
Newsgroups: news.software.nntp
Subject: Re: Header ordering
Date: Wed, 20 May 2026 21:53:51 -0700
Organization: The Eyrie
Message-ID: <87h5o18isg.fsf@hope.eyrie.org>
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>
	<10um19v$g84b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Info: hope.eyrie.org;
	logging-data="3431"; mail-complaints-to="news@eyrie.org"
User-Agent: Gnus/5.13 (Gnus v5.13)
Cancel-Lock: sha1:ImgO9YdzdDvukoRrBjTxrnaiVwQ=