Article View: news.software.nntp
Article #62819Re: NNTP and YENC
From: Russ Allbery
Date: Sun, 05 Jan 2003 20:19
Date: Sun, 05 Jan 2003 20:19
82 lines
4629 bytes
4629 bytes
Bart Crane <svcrane@attbi.com> writes:
> "Russ Allbery" <rra@stanford.edu> wrote:
>> 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.
> There is no argument that NNTP data is supposed to be in some "text"
> format, because the spec defines it so.
RFC 977 is not a useful specification for NNTP as it's used on Usenet.
There is no complete published specification; you have to look at what is
currently implemented.
I don't know how much clearer I can possibly be about this.
The current NNTP draft, which will become the next RFC replacing 977, is
somewhat better, although not complete. On this topic, it says:
Each response MUST start with a three-digit response code that is
sufficient to distinguish all responses. Certain valid responses are
defined to be multi-line; for all others, the response is contained in
a single line. All multi-line responses MUST adhere to the following
format:
The response consists of a sequence of one or more "lines", each being
a stream of octets ending with 0x0D 0x0A (US-ASCII CRLF). Apart from
those line endings, the stream MUST NOT include the octets 0x00, 0x0A,
or 0x0D (US-ASCII NUL, LF, and CR).
The first such line contains the response code as with a single line
response.
If any subsequent line begins with the "termination octet" (0x2E or
US_ASCII "."), that line MUST be "byte-stuffed" by pre-pending an
additional termination octet (0x2E) to that line of the response.
The lines of the response MUST be followed by a terminating line
consisting of a single termination octet (0x2E or US_ASCII
".")followed by CRLF in the normal way. Thus a multi-line response is
always terminated with the five octets "CRLF.CRLF" (in US-ASCII).
There is NO limit on the length of a line.
The term "textual" appears only once in the current NNTP draft, in the
description of the response to the HELP command.
A copy of that draft is available from:
<ftp://ftp.academ.com/pub/nntp/ietf/nntpext.txt>
>> 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?
> Because it is not conformant to the spec.
Not only do I not agree, I also don't consider that sufficient
justification to change anything if the specification you're referring to
is RFC 977.
> But, you have it backwards. The restrictive view is that a text-stream
> can consist of any data, except maybe 00h. This restricts compatibility
> by excluding DOS/Windows computers from have stdio-based software
> systems.
There are operating systems that are incapable of handling 8-bit
characters. I'm not going to reject all articles containing 8-bit
characters because of them.
I'm sorry that you don't find this particularly helpful, but the short
summary of my position is that you should fix, replace, or work around
your broken operating system rather than making the rest of the world
cater to its bugs.
--
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:
<ylisx3xsbd.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-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03> <ylfzs8tlg7.fsf@windlord.stanford.edu> <e7VR9.570818$%m4.168983@rwcrnsc52.ops.asp.att.net>Show Full Headers
Complete Article Headers
Message-ID: <ylisx3xsbd.fsf@windlord.stanford.edu> Subject: Re: NNTP and YENC Date: Sun, 05 Jan 2003 12:19:50 -0800 From: Russ Allbery <rra@stanford.edu> References: <BXLR9.432835$pN3.48082@sccrnsc03> <ylfzs8tlg7.fsf@windlord.stanford.edu> <e7VR9.570818$%m4.168983@rwcrnsc52.ops.asp.att.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.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: 81 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.Stanford.EDU 1041797990 286 171.64.13.23 (5 Jan 2003 20:19:50 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:eHOa5cmWLZdnkhHrSf3wu3/a9y0=