Article View: news.software.nntp
Article #89332Re: Relay : List of headers that should appear only once in an article?
From: Franck
Date: Sun, 15 May 2022 18:54
Date: Sun, 15 May 2022 18:54
130 lines
4231 bytes
4231 bytes
Hi Russ, Thanks for your explicit reply. > It is to some degree up to you. Relaying agents are allowed to be strict > about RFC 5536 compliance, or they're allowed to relay messages that don't > follow the standard but can still be processed. For the moment, I think to be strict with 5536. > Control > Date > Distribution > Injection-Date > Message-ID > Newsgroups > Path > Supersedes Checked to be unique. > Archive > Content-Transfer-Encoding > Content-Type > Expires > Followup-To > Injection-Info > MIME-Version > References Checked to be unique. > Approved > Lines > Organization > Summary > User-Agent > Xref Checked to be unique. What about : - From - Subject - Archived-At - Bcc - Cc - Keywords - Reply-To - Sender - To - Also-Control - Article-Name - Article-Updates - Date-Received - Nntp-Posting-Date - Nntp-Posting-Host - Posting-Version - Relay-Version - See-Also - X-Complaints-To - X-Trace - Cancel-Key - Cancel-Lock PS : My software do not conform to 8315 for the moment. > but duplication is unlikely to cause major practical problems (although > some servers may honor Lines instead of count lines for themselves and get > confused, and duplicated Xref headers would cause serious problems when > copying article numbers from another server). My software count lines for itself. > I may be forgetting some of the MIME headers since I didn't refresh my > memory from the relevant RFCs. :-) I need to refresh mine also! > In some cases it's arguable that the article is still sensible if the > header is duplicated but both copies of the header have the same value > (the most common duplication error in my experience), but it's still > technically invalid to duplicate them. Added to my to-list :-) > The list in innd/innd.c controls what headers are exposed to posting > filters, so is sort of absurdly long and includes all kinds of things that > probably aren't directly relevant. Ok, thanks for the explanations. 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 implemented filters to be "fixed" or "user configurable". Fixed ones are used to let the software be RFC/Draft compliant and reject articles, like : - "POSTED" in 'Path' => Article already seen. - "World" in "Distribution", - Number of occurences (21 message-ids max) in "References", - Number of occurences of terms in "Injection-Info", - Dates way to far in the past/future. And so on... Or to reject article based on a configuration option, like : - FQDN/Path Entry in 'Path' => Article already seen. - Max number of "Newsgroups", "Followup-to". And so on... Filters are also available to check the body of the article. Configurable filters will be added ONLY when I'll code the GUI part of the software. Again, Thanks for your help.
Technical Details
Message-ID:
<62814c66$0$26331$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-mailReferences:
<6280a4d0$0$18038$426a74cc@news.free.fr> <87pmke7o5k.fsf@hope.eyrie.org>Show Full Headers
Complete Article Headers
Message-ID: <62814c66$0$26331$426a74cc@news.free.fr> Subject: Re: Relay : List of headers that should appear only once in an article? Date: Sun, 15 May 2022 20:54:30 +0200 From: Franck <my@mail.is.invalid> References: <6280a4d0$0$18038$426a74cc@news.free.fr> <87pmke7o5k.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 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: <87pmke7o5k.fsf@hope.eyrie.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Lines: 130 Organization: Guest of ProXad - France Nntp-Posting-Date: 15 May 2022 20:54:31 CEST Nntp-Posting-Host: 128.90.160.48 X-Trace: 1652640871 news-1.free.fr 26331 128.90.160.48:50872 X-Complaints-To: abuse@proxad.net