🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #59506

Re: News servers, nntpcache, slrn and the Usenet bug "From ".

#59506
From: Curt Welch
Date: Sat, 06 Jul 2002 22:15
64 lines
4223 bytes
M. Buchenrieder <mibu@scrum.muc.de> wrote:
> nenosed@news.apex.met.au (Ned Latham) writes:
>
> [...]
>
> >That was what I thought. It's also why I think of it as a bug. Mail or
> >News, all messages carry Lines: headers, right?
>
> No.
>
> >Confusion shouldn't be
> >possible.
>
> [...]
>
> Wrong. The Lines: header is merely a matter of optics. You can't
> trust it at all, since the definition of a "line" may widely vary
> depending from the kind of machine the message has been created
> or been inserted into the newsfeed at.

No, that's not really it.  Lines are well defined on Usenet articles and
the "correct" value for the Lines: header is well defined as well.
Anyone who can't figure out how to convert a local text file into a Usenet
article and count the lines correctly shouldn't be writing software.  The
problem is that it's a redundant headers and _never_ used for anything
important such as finding the end of the article.  It's mostly a stupid
header that should have been removed long ago.  I believe some of the RFCs
even imply this as well.  Because no one really uses it and no one cares
about it, there have been many many clients and servers which allowed
articles to be posted with invalid Lines: headers.

Some software just can't count lines correctly.  They for example use an
interface like fgets() in C which will break long lines into multiple
buffers of data but the software counts buffers instead of lines and puts
that value into the Lines: header.  So it works correctly for normal sized
lines, but gets the value wrong if the article has any extra long lines in
it.

Mostly however the software that generates the Lines: header gets it right,
but then some other software changes the article and doesn't update the
header.  This happens when servers add crap to the bottom of every post, or
has sometimes happened when signatures get added later by the posting
software, or sometimes happens when articles are re-formated to fold long
lines, etc. etc.

These bugs were allowed to exist because the header was seem as
informational for the user only and scheduled for being removed from Usenet
at some point in the future anyway.  Then, because it was mostly just seen
as an approximation at best, people wrote other software that simply
guessed at values for the header making things even worse.

My servers keep some statistics on the accuracy of Lines: headers.

Currently, about 88% of the articles on Usenet have valid Lines: headers.
About 7% have no Lines: header at all, and the rest (about 5%) have Lines:
headers with a bogus value.

Of the articles with invalid values in the Lines: header, about 78% of
those have a value which is 1 less than it should be.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Technical Details
Message-ID: <20020706181520.539$fK@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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
References: <slrnaiaghh.333.nenosed@arthur.valhalla.net.oz> <87eleisdsw.fsf@erlenstar.demon.co.uk> <slrnaib0fg.3b6.nenosed@arthur.valhalla.net.oz> <DNhV8.6017$xf3.1063173@news11-gui.server.ntli.net> <slrnaibc7b.3hu.nenosed@arthur.valhalla.net.oz> <GytKsw.GFI@scrum.muc.de>

Show Full Headers
Complete Article Headers
Message-ID: <20020706181520.539$fK@newsreader.com>
Subject: Re: News servers, nntpcache, slrn and the Usenet bug "From ".
Date: Sat, 06 Jul 2002 22:15:20 +0000
From: curt@kcwc.com (Curt Welch)
References: <slrnaiaghh.333.nenosed@arthur.valhalla.net.oz> <87eleisdsw.fsf@erlenstar.demon.co.uk> <slrnaib0fg.3b6.nenosed@arthur.valhalla.net.oz> <DNhV8.6017$xf3.1063173@news11-gui.server.ntli.net> <slrnaibc7b.3hu.nenosed@arthur.valhalla.net.oz> <GytKsw.GFI@scrum.muc.de>
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!newsfeed.gamma.ru!Gamma.RU!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp,news.software.readers
X-Trace: NewsReader.Com aA+@o/8c0AM6eCVtX3PcLqjbdhf@lOh+kvLiFWPP=Y+f7V
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
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 63