Article View: news.software.nntp
Article #82382Re: Incorrect lines count in $hdr{__LINES__}
From: Russ Allbery
Date: Sun, 20 Dec 2009 01:54
Date: Sun, 20 Dec 2009 01:54
34 lines
2561 bytes
2561 bytes
"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.
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.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<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!news-in-01.newsfeed.easynews.com!easynews.com!easynews!newsfeed.news2me.com!usenet.stanford.edu!news.stanford.edu!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <87638276ld.fsf@windlord.stanford.edu>
Subject: Re: Incorrect lines count in $hdr{__LINES__}
Date: Sat, 19 Dec 2009 17:54:38 -0800
From: Russ Allbery <rra@stanford.edu>
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>
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!news-in-01.newsfeed.easynews.com!easynews.com!easynews!newsfeed.news2me.com!usenet.stanford.edu!news.stanford.edu!not-for-mail
Newsgroups: news.software.nntp
Organization: The Eyrie
Lines: 34
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news.stanford.edu 1261274078 15686 171.67.225.134 (20 Dec 2009
X-Complaints-To: news@news.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Cancel-Lock: sha1:hcogvp3MTrh3Xt8etAlBCluTITo=