🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89336

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

#89336
From: Julien ÉLIE
Date: Mon, 16 May 2022 18:49
53 lines
3190 bytes
Hi Franck and Russ,

>> When INJECTING an article, some headers should not appear and 
>> others should appear only once.  I do the checks in a way similar
>> to INN (nnrp/post.c)
Incidentally, I see that I once wrote at the end of the header table:

  /* 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()).



>> - Article-Name

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



>> I do not manage filters with calls to perl or python but they can be set
>> for injection and/or relay (Some sort of postfilter and cleanfeed) and I
>> will use this (long) list to initialize a combo in the GUI part of the
>> software.
> 
> I'm not sure I would.  I don't think having a long list of headers that
> you care about was the right design for INN's filters.  It's just hard to
> fix now.

Indeed!

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


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

-- 
Julien ÉLIE

« Lots of people want to ride with you in the limo, but what you want is
   someone who will take the bus with you when the limo breaks down. »
   (Oprah Winfrey)
Technical Details
Message-ID: <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
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>

Show Full Headers
Complete Article Headers
Message-ID: <t5u6ci$tf3f$1@news.trigofacile.com>
Subject: Re: Relay : List of headers that should appear only once in an article?
Date: Mon, 16 May 2022 20:49:54 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.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>
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: Mon, 16 May 2022 18:49:54 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="965743"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.9.0
Cancel-Lock: sha1:dEQiJqpMeJnGiw6DaxMos2oYAiA= sha256:E/YeTPcRg9/L8CKbdOx9p8cyUBiAeejc7K8AQYtZSNI= sha1:QRrxlVZrs8RYxq9bicaAhoMUiP0= sha256:+eI4KVmancyFnUBqg7l48pzlf+OOdIXGpdopis4FvlI=
In-Reply-To: <87k0am7fcc.fsf@hope.eyrie.org>