🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30156

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

#30156
From: Curt Welch
Date: Wed, 29 Jul 1998 00:00
57 lines
3808 bytes
usenet@oneill.net (Clayton O'Neill) wrote:
> IMHO, both of you are wrong.

Welcome to the discussion :).

> Transit servers should treat all data
> following the first \r\n\r\n they find as a byte stream where \r\n.\r\n
> is the article terminator.  They should escape \r\n. as \r\n.. until they
> reach the intended end of the article.  Any clients or servers producing
> articles that don't meet this standards are broken.

I think we all agree on that.  Well, the idea of not processing the headers
as a byte stream is a new twist, but I don't think we need to get into
that.

> I don't care what rfc977 says, this is the BCP, and is what both INN and
> Highwind products do to the best of my knowledge.

And it's what Diablo does as well.

> Matt, I have no idea what you're talking about wrt to LF escaping, but I
> can assure you that INN does no such thing.

The issue is that Diablo (and old INN etc) converts this NNTP byte stream
into Unix format text files which have lines ending in a signle LF when
it's stored.  And it does this by mapping all CRLF pairs in the NNTP byte
stream into a single LF.  Matt sees that is the "correct" way to "recover"
the true "raw" article from the NNTP byte stream.  It's what all current
transports do.

So, if one day, we wanted to send raw 8 bit data over this NNTP stream,
Matt expects the raw data to likewise be LF -> CRLF encoded by the client
before it's sent. That way, when he does the CRLF -> LF translation before
storage, he will end up with exactly the same raw article that the original
client started with.  To Matt, it seems that this LF -> CRLF encoding by
the client and the CRLF -> LF decoding is just a standard part of the NNTP
protocol.

I've never looked at that way.  I've always seen this as just a Unix EOL
convention and one that other servers would likely do differently.  But
because Matt has seen this as the correct way to do NNTP, his assumption
seems to be that any server that doesn't do it this way is broken and
needs to be fixed (it's not following the NNTP protocol).

But at the same time, as I've thought about this, I've come to realize that
the real issue is that NNTP news servers (transports and readers) need to
store articles in wire format (i.e. with the CR LF).  If they do that (like
INN is now doing), then this whole issue of encoding becomes a client issue
and not a server issue.  So that moves the issue out of the relm of NNTP
servers (and NNTP RFCs) and into the relm of newsreaders and article format
RFCs (which I think is where this issue belongs).

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

Technical Details
Message-ID: <19980729021141.027$uK@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> <19980728184343.123$fa@newsreader.com> <slrn6rtb90.qn.usenet@hmmm.colo.erols.net>

Show Full Headers
Complete Article Headers
Message-ID: <19980729021141.027$uK@newsreader.com>
Subject: Re: REPOST: Re: Content-Transfer-Encoding: binary
Date: Wed, 29 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> <19980728184343.123$fa@newsreader.com> <slrn6rtb90.qn.usenet@hmmm.colo.erols.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: 375906150
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