🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62796

Re: NNTP and YENC

#62796
From: Russ Allbery
Date: Sun, 05 Jan 2003 01:49
66 lines
4076 bytes
Bart Crane <svcrane@attbi.com> writes:

> So, I am posting here, so as to ask those who actually run news servers,
> would you please reject any article that is posted to your server that
> contains ANSI-defined control-characters (hex 00 to 1F and FF), except
> those defined by the NNTP spec as allowed (CR, LF, TAB)?

I don't agree with your interpretation of the NNTP specification, but I
suppose it's arguable.  More relevantly, though, the NNTP specification
was written before any code was written, and is in general not a
particularly good guide to what NNTP is used for in practice.

Control characters are routinely transferred via NNTP, and in fact are
required by some character encodings.

> Or, if that is too onerous as a first step, could you please do so if
> the article contains 0x1A???

Neither the operating system of my news server nor the operating system
that I use have any difficulties with that character.  Why should the
server reject such articles?  Surely the problem should be born by the
people directly affected by it, and people who wish to use an operating
system with this problem can obtain better tools, or just avoid processing
articles with that octet.

> Or, could you forcibly insert into the subject: header a key phrase so I
> can grep -v those articles out of the listing?

Modifying articles in transit is considered to be one of the worst things
that a server can do, since it breaks the one-to-one correspondance
between articles and message IDs upon which Usenet rests.  It means that a
given article with a particular message ID may have different contents on
different servers, which is really not acceptable.

> The NNTP authors explicitly allow only two control-characters, CR and
> LF, and are vague on TAB.  For good reason, because other control
> characters have other meanings on other operating systems, such as 1A ==
> End Of File.

First off, RFC 977 is hopelessly obsolete.

Second, you seem to be basing this interpretation entirely on the phrase
"textual matter" in RFC 977, which does not appear to ever be defined.

If one particular news server wished to enforce this restrictive view of
RFC 977, I wouldn't argue with that, but in practice NNTP is completely
8-bit clean and nearly binary clean and is routinely used to transport
articles containing control messages.  I really don't see what purpose
would be served by artificially restricting the range of applications for
which NNTP can be used just because some command-line tools on one
particular operating system, tools which are not directly involved in the
NNTP protocol, cannot handle a particular octet.

I'd much rather go the opposite direction and try to get all NNTP software
as close to binary-clean as possible.

> The NNTP authors were clearly talking about "stdin",

I doubt this quite a bit.

-- 
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: <ylfzs8tlg7.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <BXLR9.432835$pN3.48082@sccrnsc03>

Show Full Headers
Complete Article Headers
Message-ID: <ylfzs8tlg7.fsf@windlord.stanford.edu>
Subject: Re: NNTP and YENC
Date: Sat, 04 Jan 2003 17:49:28 -0800
From: Russ Allbery <rra@stanford.edu>
References: <BXLR9.432835$pN3.48082@sccrnsc03>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 65
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1041731368 2972 171.64.13.23 (5 Jan 2003 01:49:28 GMT)
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) XEmacs/21.4 (Honest Recruiter,
 sparc-sun-solaris2.6)
Cancel-Lock: sha1:bmrQ5xgu208x+snkvcOVJXjgwVg=