Article View: news.software.nntp
Article #59515Re: News servers, nntpcache, slrn and the Usenet bug "From ".
From: Curt Welch
Date: Sun, 07 Jul 2002 19:19
Date: Sun, 07 Jul 2002 19:19
88 lines
5931 bytes
5931 bytes
M. Buchenrieder <mibu@scrum.muc.de> wrote: > curt@kcwc.com (Curt Welch) writes: > >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. > > Although in theory, this is correct, the different ways to generate > articles makes this a myth. When you send an article to a server over NNTP there is _no_ confusion about how many lines the article has. NONE. Lines end with CR LF. You count the number of CR LF pairs in the data stream and you know EXACTLY how many lines are in the article. If the client that sends the article is too stupid to know how to send a probably formated article and count the number of lines, that's fine. It happens. But there is NO confusion about what the value of the Lines: header SHOULD be. It makes no difference what character sets are being used or what type of encoding is used. You count the number of CR LF pairs to figure out the correct value for the Lines: header. If you send a MIME formated article of type text/plain and use a transfer encoding of base64 the Lines header tells you how many lines of base64 encoding there are, not how many lines are in the text. This is well defined and simple. There is no "myth" about being able to count lines correctly. > You simply _can't_ assume the Lines: > header to be anything else than a mere guess of the article's length. If you use my servers you can. On the reader side of my servers every article has a valid and correct Lines: header. Other than on my server however, your statement is accurate. But it's not because it can't be done as you would have us believe, it's simply because it isn't done for about 5% of the articles posted ot Usenet. Because of the different types of encoding, the Lines: header however has very limited use these days even when it is correctly calculated. > It was neither ever designed for to be used as a precise value, Yes, when first created, the only code calculating it was doing it correctly. It was both a precise value and a useful value. It was added before we had XOVER as a way for clients to get an idea of how long the article was just by doing a HEAD. But once XOVER became the norm for Usenet, the Lines: header was no longer needed and as such, tends to be inaccurate. Also, when it was created, everyone (99.9%) used 80 character wide terminals to read usenet articles. There was very little doubt how the articles should be formatted and what a "line" was. And at 9600 baud and slower, it took 1 second to display each 12 lines. In those days, it was very useful to know if an article was 1000 lines vs 20 lines before you tried to display the article. Now, with everyone using GUI interfaces and proportional fonts the entire concept of a "line" is not so well defined. And even the modems today are so fast that few really care how long the article is. Mostly you just care if it's a binary or text sized article. > nor has it ever been thoroughly implemented. It's thoroughly implemented on my servers. > It is even worse. If you save the article to a file first, then later > use the saved article to create your response, then the LF or CR/LF > definition of the local system may prevent the newsserver software > that accepts the article for posting from ever seeing the correct > number of lines in the article's body. It's really a lost cause. It's not lost at all. If in the processes of saving and re-posting, the software manges to change the number of lines in the article, that is not a problem. The posting software still should be smart enough to count the number of lines which it is sending to the server and correctly generate a valid Lines: header. HOW hard is it to count CR LF pairs which are sent to the server???? Sometimes, this means that the client posting the article may have to make an extra pass to count lines before sending the article, and many times, software authors don't feel the Lines: header is important enough to go to that much trouble. So this is one reason we get articles with bogus Lines: headers. But there is never any confusion about what the lines headers should be or how it should be calculated. It's only an issue of whether it's important enough to go to the trouble to get right. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020707151931.111$ni@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<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> <20020706181520.539$fK@newsreader.com> <GyvKB5.99M@scrum.muc.de>Show Full Headers
Complete Article Headers
Message-ID: <20020707151931.111$ni@newsreader.com>
Subject: Re: News servers, nntpcache, slrn and the Usenet bug "From ".
Date: Sun, 07 Jul 2002 19:19:31 +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> <20020706181520.539$fK@newsreader.com> <GyvKB5.99M@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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!Cidera!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 /0vMqJIws=Cq1FCRmt0u_ltNLGleLILw_XO5DCF_xsbxTGq
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: 87