🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87517

Re: Multiple occurences of header fields

#87517
From: Julien ÉLIE
Date: Thu, 01 Sep 2016 20:03
30 lines
2445 bytes
David and all,

>>>> So basically "X-#%-T`!" is a valid header field name. Has anyone
>>>> here already tried to send articles with that unusual syntax?
>>
>> INN is far more liberal than that.  It will allow posts with field
>> names which fall outside the allowed range.  (It's not alone in this
>> respect.)
>
> Thanks for that bug report.
> I hope to fix it for the next release (INN 2.6.1).

I've just added the following checks at injection time (for INN 2.6.1):
- no white-space-only content lines in a given header field body,
- no control chars (except of course \r\n for folding, and \t),
- header name followed by colon+space and non-empty header field body.

For standard headers, the space after the colon is still added if not 
present (as INN was already doing).


These changes will fix the issue raised in that thread.

-- 
Julien ÉLIE

« Petite annonce : Abeille épouserait frelon. Lune de miel
   assurée. »

Technical Details
Message-ID: <nqa1h0$f8v$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> <ngtd3e$2e5$1@news.trigofacile.com> <87oa8djpeh.fsf@hope.eyrie.org> <alpine.OSX.2.20.1605111043570.14592@mako.ath.cx> <nhsd2n$mdi$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <nqa1h0$f8v$1@news.trigofacile.com>
Subject: Re: Multiple occurences of header fields
Date: Thu, 1 Sep 2016 22:03:04 +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> <ngtd3e$2e5$1@news.trigofacile.com> <87oa8djpeh.fsf@hope.eyrie.org> <alpine.OSX.2.20.1605111043570.14592@mako.ath.cx> <nhsd2n$mdi$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
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: Thu, 1 Sep 2016 20:02:40 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb080103c8000d8100e6b05b8f7a.ipv6.abo.wanadoo.fr:2a01:cb08:103:c800:d81:e6:b05b:8f7a";
 logging-data="15647"; 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.2.0
In-Reply-To: <nhsd2n$mdi$1@news.trigofacile.com>
X-Received-Body-CRC: 457593932
X-Received-Bytes: 2522