Thread View: news.software.nn
5 messages
5 total messages
Started by Gumby
Thu, 02 May 1991 06:58
# of lines field
Author: Gumby
Date: Thu, 02 May 1991 06:58
Date: Thu, 02 May 1991 06:58
9 lines
1163 bytes
1163 bytes
We are currently using nn 6.4.12 and the column that shows the number of
lines for each article is correct for articles outside of our site. But
articles originating from our site have a '?' instead. Why is this?
--
----------------------------------------------------------------------------
EMail: jbeckley@wizard.qualcomm.com VoiceMail: (619) 292-1156
jbeckley@lajolla.eng.uci.edu (714) 856-1654
jbeckley@drzeus.qualcomm.com (619) 587-1121
Re: # of lines field
Author: Paul Eggert
Date: Thu, 02 May 1991 19:51
Date: Thu, 02 May 1991 19:51
74 lines
2748 bytes
2748 bytes
jbeckley@qualcom.qualcomm.com writes:
>We are currently using nn 6.4.12 and the column that shows the number of
>lines for each article is correct for articles outside of our site. But
>articles originating from our site have a '?' instead. Why is this?
You're probably running C News, which doesn't put Lines: in news headers.
Articles that slosh through the net usually pick up a Lines: field
from an intervening B News site.
The following unofficial patch should fix your problem if
the site running nnmaster accesses the news articles directly, not via NNTP.
I think a more complete patch is in the works.
===================================================================
RCS file: news.c,v
retrieving revision 1.1
diff -c -r1.1 news.c
*** 1.1 1990/10/23 21:37:38
--- news.c 1991/04/13 01:28:48
***************
*** 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,319 ----
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: # of lines field
Author: Rupert G. Goldie
Date: Thu, 02 May 1991 23:38
Date: Thu, 02 May 1991 23:38
16 lines
1286 bytes
1286 bytes
jbeckley@qualcom.qualcomm.com (Gumby) writes: >We are currently using nn 6.4.12 and the column that shows the number of >lines for each article is correct for articles outside of our site. But >articles originating from our site have a '?' instead. Why is this? I had the same problem here. It turned out that the C-news inews wasn't generating a "lines:" header, but on looking at inews I found that you just have to uncomment some lines to make it generate one. Hope that helps. Rupert. -- Rupert G. Goldie, Research Scientist (and News maintainer) Australian Artificial Intelligence Institute rgg@aaii.oz.au Life's a bitch and then you die.
Re: # of lines field
Author: Ray Davis
Date: Fri, 03 May 1991 05:54
Date: Fri, 03 May 1991 05:54
15 lines
1364 bytes
1364 bytes
>>We are currently using nn 6.4.12 and the column that shows the number of >>lines for each article is correct for articles outside of our site. But >>articles originating from our site have a '?' instead. Why is this? >You're probably running C News, which doesn't put Lines: in news headers. >The following unofficial patch should fix your problem if Why don't we just get rid of the lines column and replace it with date? Cnews got rid of lines, so we should too. I never though it was very useful. Maybe an algorithm making use of #chars, #words as a ratio to #lines might be better. Seeing the date on the menu page is more useful to me. Ray
Re: # of lines field
Author: Harry Herman
Date: Sat, 04 May 1991 11:04
Date: Sat, 04 May 1991 11:04
28 lines
1926 bytes
1926 bytes
In <rdavis.673250058@connie.convex.com> rdavis@convex.com (Ray Davis) writes: >>>We are currently using nn 6.4.12 and the column that shows the number of >>>lines for each article is correct for articles outside of our site. But >>>articles originating from our site have a '?' instead. Why is this? >>You're probably running C News, which doesn't put Lines: in news headers. >>The following unofficial patch should fix your problem if >Why don't we just get rid of the lines column and replace it with date? >Cnews got rid of lines, so we should too. I never though it was very >useful. Maybe an algorithm making use of #chars, #words as a ratio to >#lines might be better. >Seeing the date on the menu page is more useful to me. >Ray While I would also like to see the date, I also like seeing the lines so that I know whether the article is a one or two line article, or a 200+ line article. If it a LONG article, and I don't have time to read it, I might deselect it (I auto-select all articles by default) and read it later. Now if only the Lines: could tell whether 10 lines meant 9 lines of usefull information and 1 line of ".signature", or 1 line of usefull information and 9 lines of ".signature" :-). Harry Herman herman@corpane
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