🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #89329

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

#89329
From: Franck
Date: Sun, 15 May 2022 06:59
17 lines
1548 bytes
Hello,

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) but with some additions, such as the format expected by 
the header value.

When RELAYING an article, I am currently only testing the unicity of a 
few headers that are useful for the relay but I would like to do better.

Is there an exhaustive list of headers that should only appear once that 
I could test when receiving an article in a server to server exchange?

Does the declaration of headers in innd/innd.c match this requirement?


Thanks for your help.
Technical Details
Message-ID: <6280a4d0$0$18038$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

Show Full Headers
Complete Article Headers
Message-ID: <6280a4d0$0$18038$426a74cc@news.free.fr>
Subject: Relay : List of headers that should appear only once in an article?
Date: Sun, 15 May 2022 08:59:27 +0200
From: Franck <my@mail.is.invalid>
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
Newsgroups: news.software.nntp
Content-Language: fr
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 18
Organization: Guest of ProXad - France
Nntp-Posting-Date: 15 May 2022 08:59:28 CEST
Nntp-Posting-Host: 128.90.160.99
X-Trace: 1652597968 news-3.free.fr 18038 128.90.160.99:50769
X-Complaints-To: abuse@proxad.net