🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87429

Re: Multiple occurences of header fields

#87429
From: Julien ÉLIE
Date: Tue, 10 May 2016 19:34
45 lines
2961 bytes
dunno,

> I found where the problem is. It's in nnrpd Perl filter, documented in
> ~/doc/hook-perl. It actually mentioned in documentation. Instead of using
> hash of arrays of strings, like I do, it uses hash of strings, so it cannot
> support multiple occurrences of any header fields.

Changing the use of strings to hashes of strings would unfortunately 
break existing nnrpd Perl filters, so it is not something I am inclined 
to do (unless introducing a new %hdrfull hash with that behaviour for 
instance).


> Except that it treat
> "Comments:" and "comments:" as different headers, lol.

It may be something to fix, as hash keys are case-sensitive for Perl.
A suggestion would be to somehow normalize the name of the header 
(capitalize the initial character and any character following a char 
different from [a-zA-Z]? -> "X-Trace" for instance).
Does it sound the right thing to do?


By the way, I see in RFC 5322 that a field name consists of:

    ftext           =   %d33-57 /          ; Printable US-ASCII
                        %d59-126           ;  characters not including
                                           ;  ":".

So basically "X-#%-T`!" is a valid header field name.
Has anyone here already tried to send articles with that unusual syntax?



> Same with innd Perl filter, but it does not modify the headers.

And I think innd Perl filter won't give you two answers for "Comments:" 
and "comments:", but only the contents of the first occurrence, will it?

-- 
Julien ÉLIE

« Rien ne serpe de courir ! » (Druides gaulois)

Technical Details
Message-ID: <ngtd3e$2e5$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
References: <2116899503.484444288.248931.dunno-dunno.dunno@news.mixmin.net> <ngqpe2$5cc$1@news.trigofacile.com> <1847732562.484552918.438596.dunno-dunno.dunno@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <ngtd3e$2e5$1@news.trigofacile.com>
Subject: Re: Multiple occurences of header fields
Date: Tue, 10 May 2016 21:34:05 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <2116899503.484444288.248931.dunno-dunno.dunno@news.mixmin.net> <ngqpe2$5cc$1@news.trigofacile.com> <1847732562.484552918.438596.dunno-dunno.dunno@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail
Newsgroups: news.software.nntp
Organization: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 10 May 2016 19:34:06 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb0801180400296d3c97ec7d860c.ipv6.abo.wanadoo.fr:2a01:cb08:118:400:296d:3c97:ec7d:860c";
 logging-data="2501"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0)
 Gecko/20100101 Thunderbird/45.0
In-Reply-To: <1847732562.484552918.438596.dunno-dunno.dunno@news.mixmin.net>
X-Received-Body-CRC: 3531171900
X-Received-Bytes: 2949