🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82381

Re: Incorrect lines count in $hdr{__LINES__}

#82381
From: D. Stussy
Date: Sun, 20 Dec 2009 02:19
41 lines
2941 bytes
"Russ Allbery" <rra@stanford.edu> wrote in message
news:87638276ld.fsf@windlord.stanford.edu...
> "D. Stussy" <spam+newsgroups@bde-arc.ampr.org> writes:
> > I think that they should actually be rejected by INN (or whichever NNTP
> > server package one is using) as malformed ("line too long" error).
> > However, is there any restriction on the length of body lines?
>
> Nope.

Maybe there should be (but it could be long - like the maximum TCP packet
size of 64kB).

> We experimented briefly with rejecting articles with bare LFs, but there
> turn out to be a *lot* of them and it's not clear that you really want to
> reject them all.
>
> > Since NNTP is a TCP protocol, why isn't TCP converting the LFs into
CRLFs?
>
> TCP doesn't know anything at all about line endings or, for that matter,
> lines.  Maybe you're confusing TCP with telnet, which does, but which has
> nothing to do with NNTP?
>
> > Isn't there a setting on UNIX-based machines for the TCP socket to do
> > such a conversion?
>
> No.  This is a feature of the network terminal model of telnet and,
> separately, of the data model of the FTP protocol, and is specific to
> those two protocols.
>
> The telnet command-line client will convert LFs for you when talking to
> any socket, as a convenience since most protocols require CRLF, but this
> is a feature of the telnet client, not the protocol.

That's probably what I was thinking of.  I don't normally deal with raw
sockets.

Now, doesn't the UUCODE protocol require the conversion?  That's not for
NNTP to detect or decide, but back to cleanfeed.

Technical Details
Message-ID: <hgk1l1$cl3$2@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.erje.net!news.snarked.org!not-for-mail
References: <slrnhindf5.mt9.steve@news.mixmin.net><hggok5$u3p$1@news.trigofacile.com><slrnhipvt8.mt9.steve@news.mixmin.net><hgjp7i$rdn$1@news.trigofacile.com> <hgjvor$ba8$1@snarked.org> <87638276ld.fsf@windlord.stanford.edu>

Show Full Headers
Complete Article Headers
Message-ID: <hgk1l1$cl3$2@snarked.org>
Subject: Re: Incorrect lines count in $hdr{__LINES__}
Date: Sat, 19 Dec 2009 18:19:30 -0800
From: "D. Stussy" <spam+newsgroups@bde-arc.ampr.org>
References: <slrnhindf5.mt9.steve@news.mixmin.net><hggok5$u3p$1@news.trigofacile.com><slrnhipvt8.mt9.steve@news.mixmin.net><hgjp7i$rdn$1@news.trigofacile.com> <hgjvor$ba8$1@snarked.org> <87638276ld.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.straub-nv.de!feeder.erje.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 41
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-118-51-161.lsanca.dsl-w.verizon.net
X-Trace: snarked.org 1261275617 12963 71.118.51.161 (20 Dec 2009 02:20:17 GMT)
X-Complaints-To: newsmaster+complaints@snarked.org
NNTP-Posting-Date: Sun, 20 Dec 2009 02:20:17 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478