🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #74646

Re: RFC 3997 support in NNTP server software?

#74646
From: Russ Allbery
Date: Sat, 13 Jan 2007 04:56
64 lines
4208 bytes
Grant Robertson <bogus@bogus.invalid> writes:

> Darn, I read the whole RFC and I remember reading that but I didn't put
> the pieces together. I had thought the "no independent CR or LF" rule
> was just for commands and responses. But I just found it again in
> section 3.6 in the second paragraph. Clear as day.

> However, section 10.2 doesn't seem to mention the "no independent CR or 
> LF" rule. In fact it states, 

>    ..."this specification allows
>    the use of arbitrary 8-bit data in articles subject to the following
>               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>    requirements and recommendations.

"8-bit data" here is being used in the MIME sense, as in RFC 2045:

2.8.  8bit Data

   "8bit data" refers to data that is all represented as relatively
   short lines with 998 octets or less between CRLF line separation
   sequences [RFC-821]), but octets with decimal values greater than 127
   may be used.  As with "7bit data" CR and LF octets only occur as part
   of CRLF line separation sequences and no NULs are allowed.

(although NNTP doesn't care about the 998 character limitation).  It is
different from binary data, which is what you're looking for.

The NNTP article transfer protocol can't cope with binary data, I'm
afraid.

> So you can see where I got the idea that NNTP could now carry binary
> data directly. In fact, I can't quite see why it can't or shouldn't.

Because due to the way articles are teriminated, the article must end in
CRLF.

Other than that, you can write news software that handles full binary
data, but that one flaw means that you can't handle it completely cleanly
(and the use of dot-escaping rather than stating the length of the data
before sending it makes it annoying).  Because of its history, most NNTP
software doesn't deal with NUL well (mostly because it doesn't avoid
calling C string functions like strlen in all the places one must avoid
this).

Because of history, the dot-escaping method making binary data annoying,
and the CRLF ending requirement, the feeling has been that the existing
NNTP commands aren't usefully expandable to deal with binary data and
instead a separate set of commands should be introduced, replacing the
existing ARTICLE, BODY, POST, and IHAVE commands, that provide an octet
count up-front and are specified from the start as supporting binary data.
No one has yet written a specification or implementation that I'm aware
of, though.

In other words, I'm certainly not opposed to this being addressed, but no
one has yet done it and I don't have enough time even to do the basic
maintenance on INN that should be done and bring it up into compliance
with RFC 3977 in a reasonable time frame, let alone work on this.  :/

-- 
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: <87wt3rzfrh.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!postnews.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
References: <MPG.2010ceba89601f639896da@news.newsguy.com> <eo7446$aqi$1@puck.litech.org> <MPG.2011708e48ee6d6a9896db@news.newsguy.com> <87ps9k5d4o.fsf@windlord.stanford.edu> <MPG.201220037636ab9896dc@news.newsguy.com>

Show Full Headers
Complete Article Headers
Message-ID: <87wt3rzfrh.fsf@windlord.stanford.edu>
Subject: Re: RFC 3997 support in NNTP server software?
Date: Fri, 12 Jan 2007 20:56:18 -0800
From: Russ Allbery <rra@stanford.edu>
References: <MPG.2010ceba89601f639896da@news.newsguy.com> <eo7446$aqi$1@puck.litech.org> <MPG.2011708e48ee6d6a9896db@news.newsguy.com> <87ps9k5d4o.fsf@windlord.stanford.edu> <MPG.201220037636ab9896dc@news.newsguy.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.20141118.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news3.google.com!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 64
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.Stanford.EDU 1168664178 18300 171.64.19.147 (13 Jan 2007
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux)
Cancel-Lock: sha1:9H1vBGhN+IpUnn0kIA/PugBjVS4=