🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89335

Re: Relay : List of headers that should appear only once in an article?

#89335
From: Franck
Date: Tue, 17 May 2022 05:26
49 lines
2983 bytes
Hi Julien,

>   /* The Comments and Original-Sender header fields can appear more than 
> once
>    * in the headers of an article.  Consequently, we MUST NOT put them 
> here.
>    */
> 
> So all the header fields listed there are supposed to appear only once 
> (and is tested by StripOffHeaders()).

Since this table is part of the "nnrp.c" code, I assume that it is only 
used for injection (POST) not for transit (IHAVE)? No?

I just want to offer the possibility (configurable) of rejecting 
articles received from a feed with duplicate headers that don't really 
make sense. Otherwise only primordial headers will be tested to be unique.

>>> - Article-Name
> 
> It is "Article-Names" (with an "s").  I mention it in case you 
> implemented it without the "s".

I checked for safety but it's just a typo in the message, it's 
implemented as "Article-Names".

>    https://github.com/InterNetNews/inn/issues/73
> "Provide the entire article headers to innd filters, probably in a 
> special key in the hash similar to the BODY key."
> 
> This would have saved the need to manually add useful header fields.
> At least, there aren't new ones every year to add!  Hopefully it has 
> been a long time since the last addition (following a user request).

My implementation allows to check the headers one by one EXCEPT if an 
error has already been detected (since the article will obviously be 
rejected).

Moreover, all the checks (filters or not) are only performed if the 
article is not already in error, in order to avoid wasting system's 
resources.

> Amongst other header fields not mentioned in this thread, I would check 
> that X-PGP-Key and X-PGP-Sig are unique.

Thanks to mention them, will be added to be unique for transit.

Have nice day,
Franck
Technical Details
Message-ID: <6283320b$0$22065$426a74cc@news.free.fr>
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: <6280a4d0$0$18038$426a74cc@news.free.fr> <87pmke7o5k.fsf@hope.eyrie.org> <62814c66$0$26331$426a74cc@news.free.fr> <87k0am7fcc.fsf@hope.eyrie.org> <t5u6ci$tf3f$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <6283320b$0$22065$426a74cc@news.free.fr>
Subject: Re: Relay : List of headers that should appear only once in an article?
Date: Tue, 17 May 2022 07:26:33 +0200
From: Franck <my@mail.is.invalid>
References: <6280a4d0$0$18038$426a74cc@news.free.fr> <87pmke7o5k.fsf@hope.eyrie.org> <62814c66$0$26331$426a74cc@news.free.fr> <87k0am7fcc.fsf@hope.eyrie.org> <t5u6ci$tf3f$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
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0
Content-Language: fr
Newsgroups: news.software.nntp
In-Reply-To: <t5u6ci$tf3f$1@news.trigofacile.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Lines: 49
Organization: Guest of ProXad - France
Nntp-Posting-Date: 17 May 2022 07:26:35 CEST
Nntp-Posting-Host: 128.90.160.66
X-Trace: 1652765195 news-1.free.fr 22065 128.90.160.66:50948
X-Complaints-To: abuse@proxad.net