🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #30083

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

#30083
From: bill davidsen
Date: Tue, 28 Jul 1998 00:00
31 lines
2389 bytes
In article <6pjaar$9te$1@flea.best.net>, Matt Dillon <dillon@best.net> wrote:

|     Uh, no.   The NNTP protocol requires each 'line' to be terminated with
|     the sequence CR+LF.  There is no limit on the line length.  All this
|     means is that whenever you see an LF in the article body you simply
|     replace it with a CR LF, and whenever the receiver sees a CR LF in the
|     article body it simply replaces it with an LF because it is guarenteed
|     due to the original escaping requirement that the preceeding CR was 
|     added by the code.  Other CR's in the body are passed through untouched,
|     so the result is a wash.
| 
|     If the original article contains a CR LF combination, the escaped article
|     will contain CR CR LF and the receiver will unescape it back into CR LF.

And if it has a LF? If I have a sequence:
    'a' 'b' 'c' LF 'd' CR LF 'b' 'a' 'r' CR LF
that should be two lines, no? It's not enough to convert CRLF to LF and
back to CRLF, because embedded LF characters get changed to CRLF on the
way out.

Did I restate his question more clearly? If you are going to change CRLF
to LF, than you have to escape a naken LF (I assume with a CR).

-- 
Bill Davidsen (davidsen@tmr.com) CTO, TMR Associates, Inc
  What do you mean I shouldn't do things like that at my age? At my
age if you don't do things like that you might die of natural
causes or boredom!


Technical Details
Message-ID: <6plbe6$e12$1@newssvr09-int.news.prodigy.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> <6pintb$1eo$1@flea.best.net> <19980727203523.032$aP@newsreader.com> <6pjaar$9te$1@flea.best.net>

Show Full Headers
Complete Article Headers
Message-ID: <6plbe6$e12$1@newssvr09-int.news.prodigy.com>
Subject: Re: REPOST: Re: Content-Transfer-Encoding: binary
Date: Tue, 28 Jul 1998 00:00:00 +0000
From: davidsen@tmr.com (bill davidsen)
References: <slrn6qs63j.8b9.usenet@hmmm.colo.erols.net> <6pintb$1eo$1@flea.best.net> <19980727203523.032$aP@newsreader.com> <6pjaar$9te$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: 375767236
X-Complaints-To: news@prodigy.com
X-Trace: newssvr09-int.news.prodigy.com 901656838 14370 199.4.137.118 (28 Jul 1998 20:13:58 GMT)
Organization: TMR Associates, Schenectady NY
NNTP-Posting-Date: 28 Jul 1998 20:13:58 GMT
Newsgroups: news.software.readers,news.software.nntp
Originator: davidsen@darkstar.prodigy.com