🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30086

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

#30086
From: Curt Welch
Date: Tue, 28 Jul 1998 00:00
84 lines
5697 bytes
dillon@best.net (Matt Dillon) wrote:
>     Curt, you are severely misinterpreting the RFC's

Well, I think it comes down to this.  What we are talking about (i.e. how
to send raw binary data over an NNTP connections), isn't defined in any
RFC.  As a matter of fact, all the current RFCs say don't do it.  On top of
that, no client is currently trying to do it (no common practice to turn
to).

So, with that said, there's no way for us to talk about what might be the
"right" way to do it.  Or at least there's no document you or I could point
to to "prove" one way was right or wrong.  My inital point in this thread
wasn't that one way was right or wrong, just that there were multiple ways
this might be done.  Your point (as I understand it), is that only the way
that will work with inn and Diablo is the "right" way. I guess that's an OK
point of view.

But if this is the case, then the new draft usefor document is going to get
us in trouble - because we should be defining Usenet article lines as
ending in LF, not CRLF. (This logic is a bit hard to follow so let me
explain).  If I create a USENET article in the new CRLF format and also
include a mime section with raw binary data, I'm going to have a very
complex job to do when I try to send this to an NNTP server.  The problem
is that for the CRLFs that are used as EOL markers, I don't want to change
the LFs to CRLFs (that would cause an extra CR to show up at the end of
each line).  But for any stray LFs in the binary data, I will need to
translate the LFs to CRLFs.  See what I'm getting at?.  And on the
receiving end, if I want to convert the NNTP stream back into a USEFOR
standard format, then I can't just change all CRLF's to LFs.  I have to
parse all the mime headers and only do that translation while in the middle
of a binary section.  If I do it for all CRLF pairs I don't end up with a
USEFOR starndard Usenet article.  I end up with one that's in the Unix
format with LF's at the end of the lines (which could be converted to the
CRLF format but that's once again the same complex problem that requires
parsing all the mime headers).

>     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.

No it doesn't.  At least not from what I've been told.  It stores data in
CRLF format and doesn't translate it into LF format.  I think you are still
missing some of what I'm saying.  I said it was different from Diablo and
since you are assuming Diablo is doing the right thing, that must mean that
Cyclone is doing the wrong thing.  But that's not what I said.  I said
Cyclone gets it right for both cases.  Diablo only get it right for
once case (i.e. the way "you" think it should work).

>     I will repeat that so it is crystal
>     clear: cyclone does the right thing with embedded CR's.

Embedded CR's were never the issue.  It's embedded LFs that cause a
problem with the way Diablo and old inn work.  Cyclone (from what
I've been told) deals correctly with both embedded CRs and embedded LFs.
I've never said it didn't. Diablo and inn on the other hand screw up
embedded LFs - thereby forcing us to escape embedded LFs with a preceding
CR (and as a complex side effect - means we (clients) will end up
processing articles in Unix LF format no matter what USEFOR says).  Cyclone
gets it right no matter which way the world decides to send binary data
over NNTP.

You can ignore the issues of how the transit software stores the articles
and how the clients interprete the NNTP stream and still see the issue
here.  Look instead at the raw data that's sent over an NNTP connection.
Cyclone can receive and retransmit articles with embeded CRs or embedded
LFs in this stream without changing the data.  What it passes on to the
next server is exactly what it received.  But Diablo and inn (at least in
the old storage format) can not correctly reproduce what it received if the
data has embedded LFs.  To me, that's not 8 bit clean.  But if you think it
is, then there really is no counter argument to that position.

But, if Diablo were to store articles in the USEFOR/NNTP CRLF format, and
not do the CRLF -> LF "escaping" in the storage process, then Diablo could
be as 8-bit clean as Cyclone is.

There's no way to say what's right or wrong, but I sure think the way
Cyclone works is better.  It gives us (Usenet) more options to work with
in the future and a true 8 bit clean channel.

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

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

Show Full Headers
Complete Article Headers
Message-ID: <19980728184343.123$fa@newsreader.com>
Subject: Re: REPOST: Re: Content-Transfer-Encoding: binary
Date: Tue, 28 Jul 1998 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <slrn6qs63j.8b9.usenet@hmmm.colo.erols.net> <19980728010652.281$Rf@newsreader.com> <6pjqjp$hdl$1@flea.best.net> <19980728133745.073$Lq@newsreader.com> <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
X-Deja-AN: 375804872
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
Newsgroups: news.software.readers,news.software.nntp