🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #63083

Re: NNTP and YENC

#63083
From: Jeremy
Date: Tue, 14 Jan 2003 01:58
30 lines
2340 bytes
Bart Crane <bcrane@iready.com> wrote:

> NNTP-data has been, up to now, compatible with what DOS considers
> a text-stream to be.  Coincidence?  Not at all.  It was in fact compatible
> with what became the the ISO-C definition of a text-stream, which
> forbids any ANSI-defined control-codes from appearing in the stream
> (excepting for those few that have definition use for formatting text:
> VTAB, HTAB, FF, CR and LF).

NNTP data has never been compatible with this, it's just that you didn't
encounter the incompatibility until now.

Even if it were *supposed* to be compatible, trusting the server's data
to be terminal-safe, or to not contain anything harmful when you take it
and pass it off to library or system calls, is simply poor program design.
Especially if you're dumping it to a terminal, you really must scrub it
first -- that's the client's responsibility.

> As you and whoever reads this can probably surmise, my whole
> position is that the phrasing in RFC 977 that the "textual matter"
> is "to be displayed on the user's terminal." -- i.e.: terminal control
> codes must not appear in the data stream

Your interpretation is based on assumptions as to what values a terminal
considers special.  Neither NNTP nor the server is in a position to know
this; the client is.

-- 
Jeremy  |  jeremy@exit109.com
Technical Details
Message-ID: <1042509487.957651@ok-corral.gunslinger.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!cyclone.bc.net!sjc70.webusenet.com!c03.atl99!news.webusenet.com!telocity-west!DIRECTV!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!saloon!newsbastard
References: <BXLR9.432835$pN3.48082@sccrnsc03><1042007522.340079@ok-corral.gunslinger.net> <8d$Rtvs3cDD@3247.org> <aOIU9.101$qk2.63728@news.uswest.net>

Show Full Headers
Complete Article Headers
Message-ID: <1042509487.957651@ok-corral.gunslinger.net>
Subject: Re: NNTP and YENC
Date: Tue, 14 Jan 2003 01:58:07 +0000
From: Jeremy <jeremy@exit109.com>
References: <BXLR9.432835$pN3.48082@sccrnsc03><1042007522.340079@ok-corral.gunslinger.net> <8d$Rtvs3cDD@3247.org> <aOIU9.101$qk2.63728@news.uswest.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!cyclone.bc.net!sjc70.webusenet.com!c03.atl99!news.webusenet.com!telocity-west!DIRECTV!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!saloon!newsbastard
Newsgroups: news.software.nntp
Organization: There Is No Organization
Lines: 29
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Newsreader: trn 4.0-test76 (Apr 2, 2001)
X-Meow: Meow