Thread View: news.software.nn
25 messages
25 total messages
Started by Michael McDaniel
Sat, 17 Oct 1992 20:43
Lines header?
Author: Michael McDaniel
Date: Sat, 17 Oct 1992 20:43
Date: Sat, 17 Oct 1992 20:43
24 lines
1321 bytes
1321 bytes
Hi all. I'm using nn 6.4.16 under A/UX with mini-Inews. My posts do not seem to contain the "Lines:" header so all of my articles show up as being of length "?". Any ideas? Please reply in mail if possible. Michael mdm@apple.com -- Michael D. McDaniel mdm@apple.com Enterprise Systems Division, Apple Computer -- Star Trek Fan ============================================================== Riker: "You were right, someone blew out the hatch. They were all sucked out into space." Data: "Correction, sir. That's, 'Blown out'." Riker: "Thank you, Data." Data: "Common mistake, sir." --Riker and Data, "The Naked Now", Stardate 41209.2
Re: Lines header?
Author: Dag Hasvold
Date: Mon, 19 Oct 1992 08:58
Date: Mon, 19 Oct 1992 08:58
27 lines
1524 bytes
1524 bytes
mdm@kataan.apple.com (Michael McDaniel) writes: >Hi all. >I'm using nn 6.4.16 under A/UX with mini-Inews. >My posts do not seem to contain the "Lines:" header so all of my >articles show up as being of length "?". The problem is in 'inews' and not 'nn'. If you take a look at the shell script inews and search after a line containing "Lines" you will probably find that these lines are commented out. Some newsreaders generate the "Lines:" themselves, but I have not been able to find something like this in 'nn'. If the lines regarding "Lines:" in 'inews' is not commented out I can't help you :-( Good luck! Best Regards, -- <dag> Dag Hasvold boots@falch.no ------------------------------------------------------------------ falch hurtigtrykk a.s, postboks 130 kalbakken, n-0902 oslo, norway tel +47 (2) 163040 fax +47 (2) 162350 bbs +47 (2) 162650
Re: Lines header?
Author: Jim Jagielski
Date: Tue, 20 Oct 1992 13:05
Date: Tue, 20 Oct 1992 13:05
29 lines
1597 bytes
1597 bytes
mdm@kataan.apple.com (Michael McDaniel) writes:
>Hi all.
>I'm using nn 6.4.16 under A/UX with mini-Inews.
>My posts do not seem to contain the "Lines:" header so all of my
>articles show up as being of length "?".
>Any ideas?
The "problem" is mini-inews, which does not create a Lines header...
I've recently hacked mini-inews to:
1. Bring it up to date (version 1.6)
2. Add the Message-ID and Lines header lines
(and removing the need for NNTP_MINI_INEWS defined)
3. Better performance.
Until it's folded into an official NN patch (which will be very soon), it's
available via anon-ftp here on jagubox.gsfc.nasa.gov.
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Paul Eggert
Date: Tue, 20 Oct 1992 21:06
Date: Tue, 20 Oct 1992 21:06
16 lines
1379 bytes
1379 bytes
jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes: >I've recently hacked mini-inews to: > 2. Add the Message-ID and Lines header lines > (and removing the need for NNTP_MINI_INEWS defined) I don't think this hack is a good idea. The hack adds a Lines: header to articles posted via NN. But that's not the real problem. The real problem is that NN 6.4.16 has trouble with articles that lack Lines: headers. This problem occurs even with the proposed hack, since the hack doesn't affect articles generated from other sites or newsreaders. If you fix the real problem, you don't need the hack -- in fact, the hack increases transmission costs a tad. The NN FAQ contains a patch that fixes the real problem.
Re: Lines header?
Author: Iain Sinclair
Date: Wed, 21 Oct 1992 03:55
Date: Wed, 21 Oct 1992 03:55
15 lines
1251 bytes
1251 bytes
mdm@kataan.apple.com (Michael McDaniel) writes: >My posts do not seem to contain the "Lines:" header so all of my >articles show up as being of length "?". It seems as though people are distributing inews with Lines: addition excluded (as the default). This is because a Lines: header is too much overhead, supposedly. (There are quicker ways of working out the rough size of an article). Will future versions of nn use some other way to deduce article size other than Lines: ? Seeing a "?" instead of a line count always irks me. -- Iain Sinclair axolotl@socs.uts.edu.au
Re: Lines header?
Author: Jim Jagielski
Date: Wed, 21 Oct 1992 12:41
Date: Wed, 21 Oct 1992 12:41
31 lines
2240 bytes
2240 bytes
eggert@twinsun.com (Paul Eggert) writes:
>jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
>>I've recently hacked mini-inews to:
>> 2. Add the Message-ID and Lines header lines
>> (and removing the need for NNTP_MINI_INEWS defined)
>I don't think this hack is a good idea. The hack adds a Lines: header
>to articles posted via NN. But that's not the real problem. The real
>problem is that NN 6.4.16 has trouble with articles that lack Lines:
>headers. This problem occurs even with the proposed hack, since the
>hack doesn't affect articles generated from other sites or newsreaders.
>If you fix the real problem, you don't need the hack -- in fact, the
>hack increases transmission costs a tad.
Depends... If you are using mini-inews, then you are sending the article
to a NNTP server up-the-line. Usually, they are running CNews which has
Lines: generation disabled. Sooooo the Lines: header isn't included in the
articles header body. I got the impression that this was the problem that
the original poster had and this hack (which can be disabled at will)
fixes that.
The FAQ hack you are refering to is a different beast for a different
problem.
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Jim Jagielski
Date: Wed, 21 Oct 1992 14:43
Date: Wed, 21 Oct 1992 14:43
23 lines
1781 bytes
1781 bytes
axolotl@socs.uts.edu.au (Iain Sinclair) writes:
>mdm@kataan.apple.com (Michael McDaniel) writes:
> >My posts do not seem to contain the "Lines:" header so all of my
> >articles show up as being of length "?".
>It seems as though people are distributing inews with Lines: addition
>excluded (as the default). This is because a Lines: header is too much
>overhead, supposedly. (There are quicker ways of working out the rough
>size of an article).
>Will future versions of nn use some other way to deduce article size
>other than Lines: ? Seeing a "?" instead of a line count always irks me.
Me too... the thing is, this would place some "work" on NN rather than
the poster, where it really belongs.
And it would be tough if you use a NewsServer with NNTP via NN...
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Milt Epstein
Date: Wed, 21 Oct 1992 16:34
Date: Wed, 21 Oct 1992 16:34
32 lines
2068 bytes
2068 bytes
In <axolotl.719639714@syzygy> axolotl@socs.uts.edu.au (Iain Sinclair) writes: >mdm@kataan.apple.com (Michael McDaniel) writes: > >My posts do not seem to contain the "Lines:" header so all of my > >articles show up as being of length "?". > >It seems as though people are distributing inews with Lines: addition >excluded (as the default). This is because a Lines: header is too much >overhead, supposedly. (There are quicker ways of working out the rough >size of an article). I've heard this too, but I don't understand it. When they say there are quicker/more accurate ways of finding out the size of an article, are they talking about nn/some other program finding out the size, or people reading articles? If the latter, I have to disagree (about the Lines: count not being useful) -- I find the Lines: count very useful in deciding whether I want to read an article now, save it for later, or get rid of it. I find it annoying when it's not present. I don't know about the overhead issue. >Will future versions of nn use some other way to deduce article size >other than Lines: ? Seeing a "?" instead of a line count always irks me. Sounds like you feel the same. -- Milt Epstein Department of Computer Science University of Illinois epstein@cs.uiuc.edu
Patch to fix "No Lines Header" woes.
Author: Tony Luck
Date: Wed, 21 Oct 1992 19:31
Date: Wed, 21 Oct 1992 19:31
87 lines
3541 bytes
3541 bytes
I forget where I got this patch from ... maybe its the one that people say is
in the FAQ, maybe it came from some other article on Usenet. Anyway, it deals
with those irritating question marks that turn up when there is no "Lines"
header in a posting.
If you run INN (or if all of your newsfeeds run INN) then you don't need this
patch (and you shouldn't be seeing question marks). INN adds "Lines" headers
to articles that don't have them.
If you have a religious belief that articles without Lines headers are a
communist/facist plot to make you waste cpu time counting lines in news
articles ... then stop reading now. Likewise if you believe that number
of lines is not a useful measure of article size.
This patch modifies nnmaster to count the lines in articles that have no
Lines header. This shouldn't be much of an overhead because:
a) more and more articles are arriving with Lines headers as INN
gets installed more places.
b) most articles are small, so by the time nnmaster has read the
header, the rest of the article has been grabbed from disk, so
you don't have to do much extra i/o ... just count '\n' chars
that are already in memory.
This patch is to "news.c" of nn6.4.16 (which wasn't changed by patches 17
and 18 ... so it will work for these too).
Apply this patch, or don't ... I couldn't care less ... but can we stop
talking about whether "Lines" headers are a good or bad thing?
-Tony <aegl@ossi.com>
*** news.c.old Wed Oct 21 11:18:37 1992
--- news.c Mon Feb 10 09:46:54 1992
***************
*** 230,236 ****
char *digest_buffer;
char *parse_header();
struct stat statb;
! int retry;
FILE *f;
#ifdef NNTP
int lazy;
--- 230,236 ----
char *digest_buffer;
char *parse_header();
struct stat statb;
! int c, retry;
FILE *f;
#ifdef NNTP
int lazy;
***************
*** 299,310 ****
body = parse_header(f, art_hdr_field, modes, buffer1);
- news.ng_lines = news.ng_xlines ? atoi(news.ng_xlines) : -1;
if (news.ng_from == NULL) news.ng_from = news.ng_sender;
! if (modes & FILL_OFFSETS) {
art->fpos = news.ng_fpos = ftell(f);
fseek(f, (off_t)0, 2);
news.ng_lpos = ftell(f);
}
--- 299,318 ----
body = parse_header(f, art_hdr_field, modes, buffer1);
if (news.ng_from == NULL) news.ng_from = news.ng_sender;
! if (modes & FILL_OFFSETS)
art->fpos = news.ng_fpos = ftell(f);
+ if (news.ng_xlines)
+ news.ng_lines = atoi(news.ng_xlines);
+ else {
+ news.ng_lines = 0;
+ while ((c = getc(f)) != EOF)
+ if (c == '\n')
+ news.ng_lines++;
+ }
+ if (modes & FILL_OFFSETS) {
fseek(f, (off_t)0, 2);
news.ng_lpos = ftell(f);
}
Re: Lines header?
Author: Paul Eggert
Date: Wed, 21 Oct 1992 20:04
Date: Wed, 21 Oct 1992 20:04
17 lines
1378 bytes
1378 bytes
axolotl@socs.uts.edu.au (Iain Sinclair) writes: Seeing a "?" instead of a line count always irks me. Apply the patch in the NN FAQ -- this fixes the "?" problem. jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes: The FAQ hack you are refering to is a different beast for a different problem. No, the FAQ patch fixes the "?" problem (which is what the original person complained about) by having nnmaster count the lines. Unlike Jagielski's hack, the patch works for both local postings and remote postings. The patch works even if NN is getting the news via NNTP. So there's no need to insert a Lines: count in the article header.
Re: Lines header?
Author: Michael T Pins
Date: Wed, 21 Oct 1992 20:37
Date: Wed, 21 Oct 1992 20:37
29 lines
2400 bytes
2400 bytes
jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes: >eggert@twinsun.com (Paul Eggert) writes: >>I don't think this hack is a good idea. The hack adds a Lines: header >>to articles posted via NN. But that's not the real problem. The real >>problem is that NN 6.4.16 has trouble with articles that lack Lines: >>headers. This problem occurs even with the proposed hack, since the >>hack doesn't affect articles generated from other sites or newsreaders. >>If you fix the real problem, you don't need the hack -- in fact, the >>hack increases transmission costs a tad. >Depends... If you are using mini-inews, then you are sending the article >to a NNTP server up-the-line. Usually, they are running CNews which has >Lines: generation disabled. Sooooo the Lines: header isn't included in the >articles header body. I got the impression that this was the problem that >the original poster had and this hack (which can be disabled at will) >fixes that. Then the proper solution is to get the person admin'ing CNews to uncomment the lines that put the Lines: header in. Hacking nn to do something historically done by BNews/CNews won't do much good, as it won't fix rn and vn. -- ***************************************************************************** * Michael Pins | Internet: amigapd@isca.uiowa.edu * * ISCA's Amiga Librarian | #include <std.disclaimer> * *****************************************************************************
Re: Lines header?
Author: Michael T Pins
Date: Wed, 21 Oct 1992 20:43
Date: Wed, 21 Oct 1992 20:43
39 lines
2793 bytes
2793 bytes
epstein@cs.uiuc.edu (Milt Epstein) writes: >In <axolotl.719639714@syzygy> axolotl@socs.uts.edu.au (Iain Sinclair) writes: ->mdm@kataan.apple.com (Michael McDaniel) writes: ->It seems as though people are distributing inews with Lines: addition ->excluded (as the default). This is because a Lines: header is too much ->overhead, supposedly. (There are quicker ways of working out the rough ->size of an article). >I've heard this too, but I don't understand it. When they say there >are quicker/more accurate ways of finding out the size of an article, >are they talking about nn/some other program finding out the size, or >people reading articles? If the latter, I have to disagree (about the >Lines: count not being useful) -- I find the Lines: count very useful >in deciding whether I want to read an article now, save it for later, >or get rid of it. I find it annoying when it's not present. >I don't know about the overhead issue. The extra overhead for CNews to do it is practically nil. CNews is required to grok every article that passes through it anyway. Checking to see if a Lines: header is present, and adding one if there isn't, is fairly trivial. To get nn to do it, on the other hand, would require nn to look at the entire article, instead of just the header, when building the database. For sites running news via NNTP, the overhead of this is simply to high. >>Will future versions of nn use some other way to deduce article size >>other than Lines: ? Seeing a "?" instead of a line count always irks me. >Sounds like you feel the same. -- ***************************************************************************** * Michael Pins | Internet: amigapd@isca.uiowa.edu * * ISCA's Amiga Librarian | #include <std.disclaimer> * *****************************************************************************
Re: Lines header?
Author: Soh Kam Hung
Date: Thu, 22 Oct 1992 00:12
Date: Thu, 22 Oct 1992 00:12
20 lines
1648 bytes
1648 bytes
epstein@cs.uiuc.edu (Milt Epstein) writes: >>Will future versions of nn use some other way to deduce article size >>other than Lines: ? Seeing a "?" instead of a line count always irks me. Another nice feature would be to display the number of original lines in an article. There've been too many articles which consist of little more than attributions and long signatures. Deciding what is the text of an article and what is a attribution or a signature is tricky. Lines beginning with a punctuation symbol could be classified as an attribution most of the time. The number of characters from the end of a file until the last blank line could be classified as a signature. Regards, --- Soh Kam Hung, Network Management Research, | h.soh@trl.oz.au TRL, POB 249 Clayton, Victoria 3168, Australia | +61 3 253 6638
Re: Lines header?
Author: Bill Wohler
Date: Thu, 22 Oct 1992 14:34
Date: Thu, 22 Oct 1992 14:34
104 lines
4092 bytes
4092 bytes
mdm@kataan.apple.com (Michael McDaniel) writes:
>My posts do not seem to contain the "Lines:" header so all of my
>articles show up as being of length "?".
bad time to get sick...
while some parts of this discussion are revealing new things, some
aren't. here's the old stuff from the faq--please don't discuss it
again.
Subject: How come nn doesn't show the Lines count?
From: Using nn-21
Karl Kleinpaste writes:
C News sites can turn on Lines: header creation (we do here), but
the default has it turned off. I wish more would turn it on, as
several newsreaders put it to use, and it's the most easily
available metric of article size when showing the user a menu of
available articles.
Henry Spencer replies:
We're unenthusiastic about Lines:, which is why it's off by default
and little-documented. *The* most easily available metric of
article size is not line count -- which is often slightly wrong, by
the way -- but byte count, which is available without even parsing
the headers.
You can tell C News to add Lines: headers to articles *posted*
locally, but C News has no provision for adding headers to traffic
coming in from other sites. [Specifically, search for the string
"uncomment" in inews, and uncomment those lines. --bw]
But Paul Eggert and Luc Rooijakkers provide a solution:
Remember, these are *unofficial* patches so back them out before
patching in the next release of nn. You do not have to strip the
two leading spaces before these patches. In fact you can run "patch
-s -N < this-entire-faq", within the newsreader even!
===================================================================
RCS file: news.c,v
retrieving revision 1.1
diff -c2 -r1.1 news.c
*** news.c 1990/10/23 21:37:38 1.1
--- news.c 1992/06/19 23:17:05
***************
*** 231,235 ****
char *parse_header();
struct stat statb;
! int retry;
FILE *f;
#ifdef NNTP
--- 231,235 ----
char *parse_header();
struct stat statb;
! int c, retry;
FILE *f;
#ifdef NNTP
***************
*** 300,309 ****
body = parse_header(f, art_hdr_field, modes, buffer1);
- news.ng_lines = news.ng_xlines ? atoi(news.ng_xlines) : -1;
if (news.ng_from == NULL) news.ng_from = news.ng_sender;
! if (modes & FILL_OFFSETS) {
art->fpos = news.ng_fpos = ftell(f);
fseek(f, (off_t)0, 2);
news.ng_lpos = ftell(f);
--- 300,328 ----
body = parse_header(f, art_hdr_field, modes, buffer1);
if (news.ng_from == NULL) news.ng_from = news.ng_sender;
! if (modes & FILL_OFFSETS)
art->fpos = news.ng_fpos = ftell(f);
+ if (news.ng_xlines)
+ news.ng_lines = atoi(news.ng_xlines);
+ else {
+ #ifdef NNTP
+ if (use_nntp && lazy) {
+ off_t fpos = ftell(f);
+ fclose(f);
+ f = nntp_get_article(art->a_number, 2);
+ if (f == NULL) return NULL;
+ lazy = 0;
+ fseek(f, fpos, 0);
+ }
+ #endif
+ news.ng_lines = 0;
+ while ((c = getc(f)) != EOF)
+ if (c == '\n')
+ news.ng_lines++;
+ }
+
+ if (modes & FILL_OFFSETS) {
fseek(f, (off_t)0, 2);
news.ng_lpos = ftell(f);
Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler>
Heidelberg Red Barons Ultimate Frisbee Team
Re: Lines header?
Author: Peter Wemm
Date: Fri, 23 Oct 1992 06:24
Date: Fri, 23 Oct 1992 06:24
32 lines
2175 bytes
2175 bytes
eggert@twinsun.com (Paul Eggert) writes: >jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes: >>I've recently hacked mini-inews to: >> 2. Add the Message-ID and Lines header lines >> (and removing the need for NNTP_MINI_INEWS defined) >I don't think this hack is a good idea. The hack adds a Lines: header >to articles posted via NN. But that's not the real problem. The real >problem is that NN 6.4.16 has trouble with articles that lack Lines: >headers. This problem occurs even with the proposed hack, since the >hack doesn't affect articles generated from other sites or newsreaders. >If you fix the real problem, you don't need the hack -- in fact, the >hack increases transmission costs a tad. >The NN FAQ contains a patch that fixes the real problem. Patch #19 has this problem well under control. If a "Lines:" field is missing, it will count them (if you enable this in the config file). The code is based on the FAQ code (which if memory serves, Paul wrote, yes?) It was suggested that sites with loaded NNTP servers may not want the extra overhead for counting lines. It is turned on by default, but can be easily disabled for this reason. -Peter -- Peter Wemm : peter@zeus.dialix.oz.au If it's broke, fix it (The MS-DOS way) Work phone: +61-9-479-1855 If it aint broke, don't touch it (The Unix way) Fax: +61-9-479-1134 If we can't fix it, it ain't broke (Maintainer's Motto)
Re: Lines header?
Author: Jim Jagielski
Date: Fri, 23 Oct 1992 14:09
Date: Fri, 23 Oct 1992 14:09
31 lines
2226 bytes
2226 bytes
eggert@twinsun.com (Paul Eggert) writes:
>axolotl@socs.uts.edu.au (Iain Sinclair) writes:
> Seeing a "?" instead of a line count always irks me.
>Apply the patch in the NN FAQ -- this fixes the "?" problem.
>jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
> The FAQ hack you are refering to is a different beast for a different
> problem.
>No, the FAQ patch fixes the "?" problem (which is what the original
>person complained about) by having nnmaster count the lines. Unlike
>Jagielski's hack, the patch works for both local postings and remote
>postings. The patch works even if NN is getting the news via NNTP.
>So there's no need to insert a Lines: count in the article header.
This still doesn't get to the source of the problem... The posting agent
should be the one that adds this header. If this patch does work on NNTP
then even better (although I didn't think this information was accessed
when using nnmaster to a NNTP-based server remotely) but again this just
fixes the "problem" with NN and not other news readers (yes... I know, this
_is_ news.software.nn)... Why not _both_ solutions?
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Jim Jagielski
Date: Fri, 23 Oct 1992 14:13
Date: Fri, 23 Oct 1992 14:13
30 lines
2023 bytes
2023 bytes
eggert@twinsun.com (Paul Eggert) writes:
>axolotl@socs.uts.edu.au (Iain Sinclair) writes:
> Seeing a "?" instead of a line count always irks me.
>Apply the patch in the NN FAQ -- this fixes the "?" problem.
>jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
> The FAQ hack you are refering to is a different beast for a different
> problem.
>No, the FAQ patch fixes the "?" problem (which is what the original
>person complained about) by having nnmaster count the lines.
It seems to me that the original poster was upset that _his_ articles
didn't have Lines:... He was also using mini-inews. Therefore, the reason
why _his_ articles didn't have Lines is because his mini-inews didn't
create it and neither did his "up-stream" server (CNews, I would guess).
Hacking nnmaster to pseudo-create this "information" for NN's use is
a good idea, but it's _still_ lacking in the "real" article's header
list.
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Jim Jagielski
Date: Fri, 23 Oct 1992 14:20
Date: Fri, 23 Oct 1992 14:20
33 lines
2597 bytes
2597 bytes
mtpins@icaen.uiowa.edu (Michael T Pins) writes:
>epstein@cs.uiuc.edu (Milt Epstein) writes:
>>In <axolotl.719639714@syzygy> axolotl@socs.uts.edu.au (Iain Sinclair) writes:
>>I've heard this too, but I don't understand it. When they say there
>>are quicker/more accurate ways of finding out the size of an article,
>>are they talking about nn/some other program finding out the size, or
>>people reading articles? If the latter, I have to disagree (about the
>>Lines: count not being useful) -- I find the Lines: count very useful
>>in deciding whether I want to read an article now, save it for later,
>>or get rid of it. I find it annoying when it's not present.
>>I don't know about the overhead issue.
>The extra overhead for CNews to do it is practically nil.
>CNews is required to grok every article that passes through it anyway.
>Checking to see if a Lines: header is present, and adding one if there
>isn't, is fairly trivial.
>To get nn to do it, on the other hand, would require nn to look at the entire
>article, instead of just the header, when building the database. For sites
>running news via NNTP, the overhead of this is simply to high.
For both the client and the server... For every article, nnmaster must read
the entire article. Many sites "promote" NN simply to reduce the overhead
of "full article access". I wouldn't be surprised if (at some sites) your
server administrator got a little peeved esp. if you collect a lot of groups.
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Jim Jagielski
Date: Fri, 23 Oct 1992 14:21
Date: Fri, 23 Oct 1992 14:21
24 lines
2036 bytes
2036 bytes
soh@tmp_ip_003.trl.OZ.AU (Soh Kam Hung) writes:
>epstein@cs.uiuc.edu (Milt Epstein) writes:
>>>Will future versions of nn use some other way to deduce article size
>>>other than Lines: ? Seeing a "?" instead of a line count always irks me.
>Another nice feature would be to display the number of original lines
>in an article. There've been too many articles which consist of little
>more than attributions and long signatures.
>Deciding what is the text of an article and what is a attribution or a
>signature is tricky. Lines beginning with a punctuation symbol could
>be classified as an attribution most of the time. The number of
>characters from the end of a file until the last blank line could be
>classified as a signature.
I think the "definition" of Lines: is fuzzy enuff that it simply means
the number of lines of everything that isn't a header.
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Paul Eggert
Date: Fri, 23 Oct 1992 20:38
Date: Fri, 23 Oct 1992 20:38
29 lines
2007 bytes
2007 bytes
Clearly NN should have something like the FAQ patch, which counts the number of lines of an incoming article that lacks a Lines: header. The more controversial question for NN is: Should NN generate a Lines: header for each outgoing article? Pro: 1. It reduces NN sites' computing costs, since an nnmaster need not read an article's body to count its lines. 2. Some deficient newsreaders can't count lines themselves. Con: 3. It increases all news sites' transmission and storage costs. 4. The benefit noted in (1) is small, since the article body is typically already in main memory. I believe that news transmission and storage costs are typically greater than computing costs, so (3) typically dominates (1). Nobody has published reliable statistics on this point, so it's currently a matter of opinion, not fact; this explains much of the controversy. It may be difficult to settle the matter, since costs are site-dependent. The complaints I see about ``missing'' Lines: headers come from NN users. So, once the FAQ patch for NN becomes official, (2) becomes less important. So I would say that NN should not generate Lines: headers by default. But perhaps a switch could be put into NN for those who disagree.
Re: Lines header?
Author: Bernd Felsche
Date: Sat, 24 Oct 1992 03:15
Date: Sat, 24 Oct 1992 03:15
47 lines
2798 bytes
2798 bytes
In <1c85r4INNs11@zeus.dialix.oz.au> > peter@zeus.DIALix.oz.au (Peter Wemm) writes: >eggert@twinsun.com (Paul Eggert) writes: >>jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes: >>I don't think this hack is a good idea. The hack adds a Lines: header >>to articles posted via NN. But that's not the real problem. The real >>problem is that NN 6.4.16 has trouble with articles that lack Lines: >>headers. This problem occurs even with the proposed hack, since the "problem" is in the eye of the beholder. B-) I'll throw caution to the wind and risk starting another religious war by saying that the "Lines:" header, if it's globally agreed, will only be added in one instance - at posting time. The easiest means to do this is to convince Henry Spencer that "Lines:" is a good idea (even if it's often slightly wrong) so that the header injection code will be uncommented by default. Perhaps it could even become part of the RFC. If every site around the world counts lines in all transmitted articles, that's a waste of billions of machine cycles every day (well maybe only several hundred million right now :-(). >>The NN FAQ contains a patch that fixes the real problem. >Patch #19 has this problem well under control. If a "Lines:" field >is missing, it will count them (if you enable this in the config file). >The code is based on the FAQ code (which if memory serves, Paul wrote, yes?) Sorry, not directly familiar with the impact... does nnmaster do this? >It was suggested that sites with loaded NNTP servers may not want the >extra overhead for counting lines. It is turned on by default, but >can be easily disabled for this reason. Please can we have this turned OFF by default? (or else! :-)) -- +-----+ Bernd Felsche _--_|\ #include <std/disclaimer.h> | | | | MetaPro Systems Pty Ltd / \ bernie@metapro.DIALix.oz.au | | | | 328 Albany Highway, X_.--._/ Fax: +61 9 472 3337 |m|p|s| Victoria Park, Western Australia 6100 v Phone: +61 9 362 9355
Re: Lines header?
Author: Robert Elz
Date: Sun, 25 Oct 1992 00:38
Date: Sun, 25 Oct 1992 00:38
60 lines
3796 bytes
3796 bytes
In <bjN1Vm`{@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
| Should NN generate a Lines: header for each outgoing article?
| Pro:
| 2. Some deficient newsreaders can't count lines themselves.
Its not deficient newsreaders, its whether every reader should have
to read every article, or whether a few bytes should be added by
the poster, once, rather than recalculated by ever reader.
| Con:
| 3. It increases all news sites' transmission and storage costs.
By a trivial amount, the largest Lines header you're likely to see
is 11 bytes on disc, and 12 bytes NNTP transfer, (less in a compressed
uucp batch) if saving that number of bytes is really worth some effort,
it would be better spent in eliminating some redundant references from
the References header (go look at this article, eliminating just one would
save far more than the Lines: header costs) or avoiding the truly useless
headers (your article said "Sender: usenet@twinsun.com" which truly provides
lots of useful information... - this one probably says something similar)
| 4. The benefit noted in (1) is small, since the article body
| is typically already in main memory.
The vast majority of articles are truly small, so, at least if you're
not using NNTP, this is probably true, and the cost of counting the
newlines is pretty small for those - but if you look at the stats on
the total volume of bytes you'd have to read, you see that about 25%
of all the bytes are in big (>16Kb) articles [uunet stats] - all that
data isn't in memory already - so at least 25% of the data you have to
read won't be in memory already, and given that its likely to be read
lots of times - once per user, that can be quite a bit of extra overhead.
| The complaints I see about ``missing'' Lines: headers come from NN users.
That's mostly because its NN that makes it so obvious when the Lines
header is missing - and demonstrates how important that users consider
the information.
The only truly good argument against Lines: was the old one about the
information being useless, as B news sites tend to mess around with
either the article body so much, or with the Lines header, or both,
that the information is useless anyway. With B news use declining rapidly
this argument no longer has a lot of force.
On the contrary, Lines headers now can be useful in helping preventing
the spread of articles truncated somehow - INN can be configured to
count the lines as it receives the article (its doing all the work
anyway, as it has to change the NNTP end of line \r\n into just \n)
and compare it against the Lines header - if the count is wrong by more
than a configureable amount, the article will be rejected, and we
wait for a better (intact) copy. (This is optional so sites without
redundant feeds can just take the article anyway). Truncated articles
aren't common, but they can happen, and there's currently (excluding
INN) no protection at all.
kre
Re: Lines header?
Author: Jim Jagielski
Date: Mon, 26 Oct 1992 12:54
Date: Mon, 26 Oct 1992 12:54
49 lines
2969 bytes
2969 bytes
eggert@twinsun.com (Paul Eggert) writes:
>Clearly NN should have something like the FAQ patch, which counts the
>number of lines of an incoming article that lacks a Lines: header.
>The more controversial question for NN is:
>Should NN generate a Lines: header for each outgoing article?
>Pro:
> 1. It reduces NN sites' computing costs, since an nnmaster
> need not read an article's body to count its lines.
> 2. Some deficient newsreaders can't count lines themselves.
>Con:
> 3. It increases all news sites' transmission and storage costs.
> 4. The benefit noted in (1) is small, since the article body
> is typically already in main memory.
>I believe that news transmission and storage costs are typically
>greater than computing costs, so (3) typically dominates (1). Nobody
>has published reliable statistics on this point, so it's currently a
>matter of opinion, not fact; this explains much of the controversy.
>It may be difficult to settle the matter, since costs are site-dependent.
>The complaints I see about ``missing'' Lines: headers come from NN users.
>So, once the FAQ patch for NN becomes official, (2) becomes less important.
Unfortunately for those of us who access news via NNTP from a server, the
patch drastically increases data transmission, since nnmaster must now
read the entire article. It even increases it a bit more those who
don't use NNTP. (4) doesn't (usually) apply.
>So I would say that NN should not generate Lines: headers by default.
>But perhaps a switch could be put into NN for those who disagree.
Here here!
At the very least, this patch should be a #define'd section.
Oh yeah... once again, usually the actually posting s/w generates the
Lines header... NN doesn't have to and the header not being generated is
_not_ a NN deficiency. Rather, it's a deficiency in the original posting
software.
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Jim Jagielski
Date: Mon, 26 Oct 1992 13:01
Date: Mon, 26 Oct 1992 13:01
38 lines
2455 bytes
2455 bytes
bernie@metapro.DIALix.oz.au (Bernd Felsche) writes:
>In <1c85r4INNs11@zeus.dialix.oz.au>
>> peter@zeus.DIALix.oz.au (Peter Wemm) writes:
>>eggert@twinsun.com (Paul Eggert) writes:
>>>jim@jagubox.gsfc.nasa.gov (Jim Jagielski) writes:
>>>I don't think this hack is a good idea. The hack adds a Lines: header
>>>to articles posted via NN. But that's not the real problem. The real
>>>problem is that NN 6.4.16 has trouble with articles that lack Lines:
>>>headers. This problem occurs even with the proposed hack, since the
>"problem" is in the eye of the beholder. B-)
>I'll throw caution to the wind and risk starting another
>religious war by saying that the "Lines:" header, if it's
>globally agreed, will only be added in one instance - at
>posting time.
This is a very good idea...
As I've said before, hacking nnmaster makes NN users happy but doesn't
really solve the problem for other readers...
Enabling Lines generation at posting time (which my mini-inews does)
solves the problem at the logical place: the source.
For those without overtaxed servers, then the patch to nnmaster will make
many people happy and is, in general, a good idea... If everyone generated
Lines (which, last I looked was _still_ an optional header :) then even
those of us NNTP servers would be happy as well :)
--
Jim Jagielski | "It is not I who am crazy...
jim@jagubox.gsfc.nasa.gov | it is I who am MAD!"
NASA/GSFC, Code 734.4 |
Greenbelt, MD 20771 | - Ren
Re: Lines header?
Author: Paul Eggert
Date: Thu, 29 Oct 1992 17:38
Date: Thu, 29 Oct 1992 17:38
47 lines
2741 bytes
2741 bytes
kre@cs.mu.oz.au (Robert Elz) writes:
>In <bjN1Vm`{@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
>| Should NN generate a Lines: header for each outgoing article?
>| Pro:
>| 2. Some deficient newsreaders can't count lines themselves.
>Its not deficient newsreaders, its whether every reader should have
>to read every article, or whether a few bytes should be added by
>the poster, once, rather than recalculated by ever reader.
I see that my point wasn't clear enough. The cost question is:
Is it cheaper (in real $$) to transmit a Lines: count to all sites,
or is it cheaper to recalculate it at the sites that need it?
I argue that recalculation is cheaper. (I admit nobody's measured this.)
Point (2) was merely that some newsreaders can't recalculate the lines
count. Notably NN 6.4.16 without the FAQ patch. That is an argument
for generating Lines: headers even if this is more expensive. But I
argue that point (2) is not very important, since the fix for NN is
well known.
>| Con:
>| 3. It increases all news sites' transmission and storage costs.
>By a trivial amount,
Yes, it's small, but so is the cost of recalculating the line count.
The question is: which ``trivial'' cost is greater?
>if saving that number of bytes is really worth some effort,
>it would be better spent in eliminating [other parts of the header]
I would also like to save bytes in other parts of the header. However,
there's no effort at all to save the bytes associated with the Lines: count.
Just use C News, and NN 6.4.16 with the FAQ patch.
(You need the FAQ patch anyway.)
>On the contrary, Lines headers now can be useful in helping preventing
>the spread of articles truncated somehow
If we really want end-to-end checksums, we should introduce and use them,
and not rely on fuzzy line counts, which are a half-baked way to handle
transmission errors.
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