🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #69396

Re: Possible bugs in rnews (inn 2.4.1)

#69396
From: Russ Allbery
Date: Sun, 04 Jul 2004 06:16
49 lines
3625 bytes
Eric Veldhuyzen <eric@terra.nu> writes:

> I just found two problems when rnews tried to process some news batches
> that where send by my ISP via UUCP. Since I am not sure if they are
> really bugs or simply something that should not be possible (in other
> words, my ISP accepts and sends articles they should not) I'd like your
> opinion first before I mail this to the inn-bugs list (and/or trying to
> fix this myself).

> 1) rnews stops processing the newsbatch when it gets to an article which
>    contains control characters. What I usually see is that some article
>    contains the NULL characters (^@) en rnews breaks on it, and stops
>    processing the rest of the newsbatch. Are control characters like the
>    NULL character illegal in postings?

I think rnews needs to be studied a little for nul handling; it looks like
at least the wire format conversion doesn't work properly when the article
contains a nul character.  I haven't made any more fixes to this at the
moment, though.

> 2) rnews stops processing the newsbatch when it gets to an article that
>    does have an empty Subject (/^Subject: $/). It logs the message
>    "rnews: bad_article missing Subject", but then doesn't process the
>    rest of the newsbatch.

I'm a little confused how this is supposed to work.  rnews *does* have a
way of rejecting one message and then continuing on to process the rest of
the batch, and intentionally doesn't use it for this case.  I'm not sure
why that is... it seems to me that for this, and also for unterminated
message ID headers, only the one article should be rejected rather than
pushing aside the whole batch.

I may try this modification in CURRENT to see if anyone encounters trouble
with it.

> In both cases it might very well be that it is indeed illegal, but in my
> opinion this should mean that this article should be ignored and
> processing the batchfile should continue after the illegal article.
> Instead the whole batchfile is placed in /var/spool/news/incoming/bad/
> for manual inspection.

It really shouldn't be putting it in bad either; it looks like rnews -U
behaves slightly differently than regular rnews, which is odd.

-- 
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: <87lli0guuc.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.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc1.usenetserver.com!news.usenetserver.com!news.spiralweb.com!xmission!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <cbrmdl$8mm$1@whisky.terra.koffie.dot>

Show Full Headers
Complete Article Headers
Message-ID: <87lli0guuc.fsf@windlord.stanford.edu>
Subject: Re: Possible bugs in rnews (inn 2.4.1)
Date: Sat, 03 Jul 2004 23:16:59 -0700
From: Russ Allbery <rra@stanford.edu>
References: <cbrmdl$8mm$1@whisky.terra.koffie.dot>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.sjc.giganews.com!border2.nntp.sjc.giganews.com!border1.nntp.sjc.giganews.com!nntp.giganews.com!sjc1.usenetserver.com!news.usenetserver.com!news.spiralweb.com!xmission!logbridge.uoregon.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 49
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1088921819 23969 171.64.19.147 (4 Jul 2004 06:16:59
 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through
 Obscurity, linux)
Cancel-Lock: sha1:wQy0pYs7WA4Vkj0e+WEoqOeBfPU=