Thread View: news.software.readers
7 messages
7 total messages
Started by Paul B. Poh
Fri, 21 Feb 1992 02:16
Line and date field in article header
Author: Paul B. Poh
Date: Fri, 21 Feb 1992 02:16
Date: Fri, 21 Feb 1992 02:16
32 lines
2170 bytes
2170 bytes
I recently installed a copy of anu-news on one of our VMS machines as an NNTP client. I noticed that anu-news displays the date and the number of lines of each article. Anu-news does not display the date for articles that use the date field for articles that use the date format with the day in it. For example: Date: Thu, Feb 1992 15:45:13 GMT According to rfc 822, and the anne.jones script in cnews that puts in the date field in the header, the day [thu] is optional and correct. But after checking a few articles, I did not come across a single article that uses this format. Is this a correct date format to use? Currently all articles generated at our site use this date format. Anu-news also displays the lines of each article. My question is: Is the lines field an optional field? I notice that all of the articles we receive seem to include a lines field but I did not notice any mention of that field in the rfc. Or is the lines field inserted into articles after they are received (seemed to make more sense to save bandwidth). It appears that articles generated at our site by rn, xrn, vnews does not have a lines field and only articles generated by gnus, anu-news have the lines field. Is it the responsibility of the news reader to generate the lines field or the news software(ie. cnews). Any hints or comments would be appreciated. -- Paul Poh Academic Computer Services ppoh@jade.tufts.edu Tufts University
Re: Line and date field in article header
Author: Henry Spencer
Date: Fri, 21 Feb 1992 16:31
Date: Fri, 21 Feb 1992 16:31
21 lines
1466 bytes
1466 bytes
In article <PPOH.92Feb20211653@jade.tufts.edu> ppoh@jade.tufts.edu (Paul B. Poh) writes: >Anu-news also displays the lines of each article. My question is: Is the >lines field an optional field? ... Yes. >seem to include a lines field but I did not notice any mention of that >field in the rfc. For news you should be looking at RFC 1036, not just 822. >Is it the responsibility of the news reader to generate the lines field or >the news software(ie. cnews). Traditionally it is the responsibility of inews to generate it, if it feels like doing so. C News inews doesn't by default (the code is in there but commented out). -- The X Window system is not layered, and | Henry Spencer @ U of Toronto Zoology it was not designed. -Shane P. McCarron | henry@zoo.toronto.edu utzoo!henry
Re: Line and date field in article header
Author: Henry Spencer
Date: Tue, 25 Feb 1992 20:08
Date: Tue, 25 Feb 1992 20:08
15 lines
1512 bytes
1512 bytes
In article <1992Feb25.000224.4345@pilhuhn.ka.sub.org> hwr@pilhuhn.ka.sub.org (Heiko W.Rupp) writes: >>[Lines:] C News inews doesn't by default (the code is in there but >>commented out). > >Why is that the default? Ok, it saves a few bytes of transmission (cutting >most peoples .sig by one line would help more), but I think one looses >much information without the Lines:-header... It's information that the receiving news system can fairly trivially reconstruct if it wants to. Our feeling tends to be that number of bytes is, in any case, a better measure of how long an article is. -- The X Window system is not layered, and | Henry Spencer @ U of Toronto Zoology it was not designed. -Shane P. McCarron | henry@zoo.toronto.edu utzoo!henry
Re: Line and date field in article header
Author: Bob Sloane
Date: Thu, 27 Feb 1992 09:08
Date: Thu, 27 Feb 1992 09:08
30 lines
2318 bytes
2318 bytes
In article <1992Feb25.000224.4345@pilhuhn.ka.sub.org>, hwr@pilhuhn.ka.sub.org (Heiko W.Rupp) writes: > henry@zoo.toronto.edu (Henry Spencer) writes: > [lines-field] > >>like doing so. C News inews doesn't by default (the code is in there but >>commented out). > > Why is that the default? Ok, it saves a few bytes of transmission (cutting > most peoples .sig by one line would help more), but I think one looses > much information without the Lines:-header. When I have less time I > only read the short articles leaving the long ones for later. > So I think the Lines:-header is a usefull headerline. Determining the number of lines in an article is a non-trivial task. The most the Lines: header can do is tell you the number of newline characters in the article, which may or may not have anything to do with how many lines will display on your screen when you look at the article. How should lines that are longer than 80 columns be counted? If you are displaying on a 132 column screen, they count as one line, while on an 80 column screen they count as two lines. It seems better to leave the task of counting lines to the news reader software rather than the transport software, which doesn't really care how many lines there are anyway. That way, the the software can determine how many lines it will take on your particular display, which seems like a more useful number to me. -- USmail: Bob Sloane, University of Kansas Computer Center, Lawrence, KS, 66045 E-mail: sloane@kuhub.cc.ukans.edu, sloane@ukanvax.bitnet, AT&T: (913)864-0444
Re: Line and date field in article header
Author: Matthew P Wiener
Date: Tue, 03 Mar 1992 02:03
Date: Tue, 03 Mar 1992 02:03
21 lines
2219 bytes
2219 bytes
In article <1992Mar2.103619.27610@grunt.ee.und.ac.za>, barrett@daisy (Alan P Barrett) writes: >You want your user interface to tell you how many lines an article >contains, so that you can use that information to help you decide which >articles to read? So get your user interface to count the lines for >you, and display the result in its article selection menu. You don't >need the line count to be transmitted as a header. But under NNTP you want it to be. You can't find the article size without getting the whole article. If you'd like to do a KILL based on article size, the quick way is to grab the headers and check the Lines: header. The slow way is to grab the whole article, and only then find out you wasted all that time. Or more generally, if you want to have your newsreader do a partial display with article-received-so-far under NNTP, and continue to grab the rest of the article while the user reads the beginning, then again, the reader who wants to know how far down the article he is depends on the newsreader using the Lines: header. -- -Matthew P Wiener (weemba@libra.wistar.upenn.edu)
Re: Line and date field in article header
Author: Paul Smee
Date: Tue, 03 Mar 1992 14:44
Date: Tue, 03 Mar 1992 14:44
20 lines
1929 bytes
1929 bytes
In article <1992Mar2.103619.27610@grunt.ee.und.ac.za> barrett@daisy.ee.und.ac.za (Alan P Barrett) writes: >You want your user interface to tell you how many lines an article >contains, so that you can use that information to help you decide which >articles to read? So get your user interface to count the lines for >you, and display the result in its article selection menu. You don't >need the line count to be transmitted as a header. In addition to (valid, IMHO, NNTP arguments presented by someone else) having the originating site do the counting goes along with my principle of minimal overheads. Counting the lines once, at origination, and shipping that in the header has got to be, overall, cheaper than having tens of thousands of machines counting the lines at reading time. Even allowing for the fact that it would be, roughly, 10 extra chars per article to transmit. (If the latter is an issue, could recoup most of it by stringent .sig limitations.) -- Paul Smee, Computing Service, University of Bristol, Bristol BS8 1UD, UK P.Smee@bristol.ac.uk - ..!uunet!ukc!bsmail!p.smee - Tel +44 272 303132
Re: Line and date field in article header
Author: Felix Lee
Date: Wed, 04 Mar 1992 21:23
Date: Wed, 04 Mar 1992 21:23
23 lines
1847 bytes
1847 bytes
The real issue isn't Lines, but some indication of article size. If a Characters count were available, then this would likely be as useful as Lines. (I use character counts for reading mail with MH.) It's not exactly equivalent, but it's about as useful. It may be sensible to require every newly posted article to have a Lines (or Characters) header computed for it, but this requirement was omitted in the RFC for news, so many news sites omit it. This situation is not going to get changed anytime soon. Given that you cannot depend on the existence of Lines (or Characters), it's sensible for the newsreader to figure out the article size for you. On Unix systems, it's cheap to compute Characters. On record-oriented systems, it's cheap to compute Lines. Whatever type of size is natural on your system should be fine. (The NNTP protocol doesn't directly provide a means of getting natural article sizes though...) -- Felix Lee flee@cs.psu.edu
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads