🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #78491

Re: Broken "Newsgroups:" headers from GoogleGroups?

#78491
From: Russ Allbery
Date: Sun, 06 Jan 2008 00:41
50 lines
3624 bytes
"Adam H. Kerman" <ahk@chinet.com> writes:

> Today, I encountered such a message, but not from Google Groups. The
> News administrator says he's running INN. There were merely two
> newsgroups in the crosspost. The Newsgroups header, then, wasn't
> particularly long (well under 80 characters) so folding white space
> wouldn't even have been an issue!
>
> Why, then, is INN violating RFC 1036 syntax?

I took some time to do a more detailed inspection of the code, and it
looks like, despite comments in the source that indicate the intention was
still to make this check, the rejection of Newsgroup header fields
including whitespace was accidentally dropped in innd as part of a
restructuring of all of the article parsing code for speed in 2001-02-02.
Everything else assumed that innd was still checking and rejecting such
messages.  Looking at the code, the situation right now appears to be
rather screwy, with innd stripping the whitespace and seeing the actual
group names and nnrpd treating the whitespace as part of the group name
and hence not seeing any groups after the first one.

I expect I didn't look beyond the comments and intention of the code when
investigating this for the working group either, and probably wasn't
correct in my assessment of the implementation at the time.

I'm not sure the correct thing to do at this point, although at the moment
the nnrpd code is clearly wrong and needs to move in one direction or the
other.  Given the USEFOR draft, I think the right thing to do would be to
strip the whitespace in nnrpd as well and make innd and nnrpd consistent.

It's currently using strtok, which is not a great idea for other reasons.

> So as of a year ago when this latest version of USEFOR was drafted,
> folding white space on the Newsgroups header was still controversial.

I don't think that's the word that you're looking for.  I don't believe
there was any controversy in the working group over the feature.  It's
just not widely implemented.

> The delimiter remains the comma; folding white space SHOULD NOT be
> generated.

Note that the only part of INN affected by this SHOULD NOT would be inews,
as that's the only part of INN that generates articles.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID: <87r6gvwzts.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <Xns99F390AA4C5D5VeebleFetzer@216.250.184.7> <877ik6udr1.fsf@windlord.stanford.edu> <47801efe$0$47150$892e7fe2@authen.yellow.readfreenews.net>

Show Full Headers
Complete Article Headers
Message-ID: <87r6gvwzts.fsf@windlord.stanford.edu>
Subject: Re: Broken "Newsgroups:" headers from GoogleGroups?
Date: Sat, 05 Jan 2008 16:41:03 -0800
From: Russ Allbery <rra@stanford.edu>
References: <Xns99F390AA4C5D5VeebleFetzer@216.250.184.7> <877ik6udr1.fsf@windlord.stanford.edu> <47801efe$0$47150$892e7fe2@authen.yellow.readfreenews.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 50
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1199580063 11091 171.64.19.147 (6 Jan 2008 00:41:03
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
Cancel-Lock: sha1:QdtSg8hGsBqIIzYmOczIcexIm5A=