🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30106

Re: REPOST: Re: Content-Transfer-Encoding: binary

#30106
From: Matt Dillon
Date: Tue, 28 Jul 1998 00:00
142 lines
8223 bytes
:In article <19980728133745.073$Lq@newsreader.com>,
:Curt Welch <curt@kcwc.com> wrote:
:>dillon@best.net (Matt Dillon) wrote:
:>
:>I now see that this is what is confusing you.
:>
:>You seem to think that somewhere in the NNTP protocol, there's a concept of
:>an "LF-only article" that must go though an LF -> CRLF conversion.  Please,
:>show me where in any RFC that is talked about.  The fact that you think
:>this is part of the standard NNTP protocol is what's blinding you to my
:>point.  It's not part of any standard.  It is something that inn has always
:>done and it is something Diablo is doing, but it's not something that
:>Cyclone is doing (the only real 8 bit clean TRANSIST software on the
:>planet?).

    Curt, you are severely misinterpreting the RFC's.    The modern 
    interpretation of the RFC's is that NNTP is an escaping protocol,
    *NOT* a translation protocol.

    If you read the RFCs with that idea in mind, they will become much
    clearer to you.  NNTP is an escaping protocol.  "." escaping and LF 
    escaping... same difference.  You are applying one definition to "."
    escaping and applying a totally different definition to LF escaping
    when, in fact, both escaping mechanisms work in the same manner.

    I will repeat that:  NNTP is an ESCAPING protocol, not a TRANSLATION
    protocl.  The major news transit systems use it as an escaping protocol,
    INCLUDING CYCLONE.  I will repeat that so it is crystal clear:
    cyclone does the right thing with embedded CR's.

:>There was a time in the history of Usenet where the article format was
:>"defined" as lines ending in LF.  This was the required format for
:>transporting articles over UUCP.  But starting with the creation of
:>NNTP, this standard vanished.

    This is incorrect.  Much of the older software, such as uucp, used
    a (data,extent) which meant that the data content during the transfer
    did not have to be escaped, which meant that it was effectively sent
    in its binary form which, for a text-body, tends to be LF-only since
    that is the defacto plain ascii data encoding used on the USENET.  But
    it doesn't have to be.

    With the NNTP protocol, the data content must be escaped to conform
    to the NNTP protocol.  In a modern interpretation of the protocol, this
    does NOT cause the data to be munged, it simply causes it to be escaped
    on one end and unescaped on the other, resulting in the original.

    Nobody writing or updating news software today disagrees with the
    'NNTP is an escaping protocol' interpretation of the RFC's.

:>In it, it says nothing about how Usenet articles are encoded.  It only
:>talks about the CRLF line terminators and the leading . issue.  There
:>is NOTHING in the NNTP protocol that talks about traslating LF to CRLF.

    The modern interpretation of the RFCs is that they are talking about
    escaping data, not translating it.

:>So then I checked out son-of-1036:
:>
:>http://www.chemie.fu-berlin.de/outerspace/netnews/son-of-1036.html
:>
:>It defines articles made up of lines which end in an abstract EOL marker,
:>which may vary from system to system.  It says NOTHING to make me assume
:>that all transports should be expected to do the LF->CRLF translation that
:>you have decided is part of the standard. As I keep saying, this is a
:>conversion done on Unix and Unix-like systems to convert from the NNTP CRLF
:>EOL convention to the Unix LF EOL convention. There are NO standards that I
:>can find that say Usenet articles have lines which end with LF.

   You are seriously misinterpreting the document.  In the NNTP protocol,
   like with many internet protocols, the command and/or line delimeter 
   must be CRLF.  The modern interpretation of the document is that this
   is a required ESCAPING, similar to "." escaping, not an optional
   escaping.

:>But it also has comments like:
:>
:>  NOTE: 8-bit enthusiasts are warned that not all software conforms to
:>  these recommendations yet. In particular, standard NNTP [rrr] is a 7-bit
:>  protocol, and there may be implementations which enforce this rule. Be
:>  warned, also, that it will never be safe to send raw binary data in the
:>  body of news articles, because changes of EOL representation may (will!)
:>  corrupt it.
:>
:>The part about the EOL representaion issues are exactly the point I'm
:>getting at.  You have made the assumption that all TRANSPORTS and
:>CLIENTS (sorry have to touch on this) will use your LF->CRLF translation.
:>This just isn't the way it works any more.

    The RFC has this comment wrong.   Well, not quite wrong... in fact,
    the RFC is correct in regards to the *last* character of the body, which
    must be an LF in raw form so the NNTP-escaped version can be
    CR+LF+"."+CR+LF.  (otherwise the '.' wouldn't be recognized as an
    article terminator).  At the time it was written, the RFC was more 
    correct with this comment then it is now, but anyone going by the
    old interpretation of the RFC is going to (properly) get harassed until
    they fix it.

    Some news systems capitalize the host-part of the Message-ID: too, and
    the RFC doesn't strictly disallow it, but a large percentage of the
    backbone will no longer accept message-id munging (where the message-id
    in the IHAVE/TAKETHIS command has a different capitalization then the
    one in the Message-ID: header of the article).  It is considered broken
    to mess with the message-id in that fashion, just as it is considered
    broken to not properly escape/descape articles passed via the NNTP
    protocol.

:>I agree with you that if you stick with the LF EOL convention as the
:>standard and put the data though the LF->CRLF conversion before sending it
:>over NNTP and reverse that afterwards, then INN and Diablo will work fine
:>and provide a complete 8-bit clean channel for sending binary data.  And if

    All major newstransit systems do this.  Those that don't are rapidly
    being fixed or replaced and are properly considered broken in the modern
    interpretation of the RFCs.  As I said, this has been a significant trend
    for the last several years.  You can argue that the NNTP protocol
    doesn't specifically forbid improper escaping but nobody familiar with
    USENET news transport would actually *implement* it that way these
    days.

:>But my point, as always, has been that this LF->CRLF translation that you
:>think of as part of the NNTP protocol isn't in fact part of the protocol
:>and it isn't in fact part of any Usenet message RFC either.

    It's a matter of interpretation.  The modern interpretation of the NNTP
    protocol is that it is an escaping protocol, not a translation protocol.
    If you read the the RFC's with that in mind they will become much more
    clear to you.  You are stuck on this nntp-as-translation-protocol bent
    and it just isn't the way NNTP is used or defined these days.

:>
:>-- 
:>Curt Welch                                            http://CurtWelch.Com/
:>curt@kcwc.com                          Webmaster for http://NewsReader.Com/


-- 
    Matthew Dillon  Engineering, HiWay Technologies, Inc. & BEST Internet
                    Communications
    <dillon@best.net> (Please include original email in any response)

Technical Details
Message-ID: <6plakh$j51$1@flea.best.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!not-for-mail
References: <slrn6qs63j.8b9.usenet@hmmm.colo.erols.net> <19980728010652.281$Rf@newsreader.com> <6pjqjp$hdl$1@flea.best.net> <19980728133745.073$Lq@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <6plakh$j51$1@flea.best.net>
Subject: Re: REPOST: Re: Content-Transfer-Encoding: binary
Date: Tue, 28 Jul 1998 00:00:00 +0000
From: dillon@best.net (Matt Dillon)
References: <slrn6qs63j.8b9.usenet@hmmm.colo.erols.net> <19980728010652.281$Rf@newsreader.com> <6pjqjp$hdl$1@flea.best.net> <19980728133745.073$Lq@newsreader.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.mbox.zip!not-for-mail
X-Deja-AN: 375760549
X-Trace: 901656021 10951 dillon 206.184.139.131
Organization: Best Internet Communications, Inc.
Newsgroups: news.software.readers,news.software.nntp