🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
10 messages
10 total messages Started by Geoff Collis Fri, 29 Apr 1994 14:05
TIN 1.2 PL2 - missing line numbers
#8810
Author: Geoff Collis
Date: Fri, 29 Apr 1994 14:05
32 lines
1914 bytes
I have noticed that when I list a thread using the *l* command that
some articles are prefixed by the number of lines in that article.  With
the 1.2 PL2 version I built this doesn't appear to work.

Dummy Example:

    0    [  23] somebody@nowehere
    1    [  10] somebody@nowehere
    2    [  40] somebody@nowehere

The number of lines is shown in "[..]", but with my version this is
always zero, i.e.

    3    [   0] collis@hpcssg.serigate.philips.nl

If you display the header block using *^h* then I appear to have a
missing "Lines:"  entry from the header.  Despite perusing the source I
cannot work out how to ensure that "Lines:  " field is added to the
header.

Tin is built NNTP_ONLY and to use its own mini-inews. 

Any suggestions how I fix this?

Many thanks 

   Geoff

--
 Geoff Collis, CSSG, Philips Semiconductors, Southampton, U.K.
 email: collis@hpcssg.serigate.philips.nl (seri : collis@hpcssg)
 tel  : +44 703 316360; fax : +44 703 316303
Re: TIN 1.2 PL2 - missing line numbers
#8814
Author: Sean V. Kelley
Date: Fri, 29 Apr 1994 15:40
40 lines
2130 bytes
In article <Cp0xsK.51I@ukpsshp1.serigate.philips.nl>,
Geoff Collis <collis@hpcssg.serigate.philips.nl> wrote:
>I have noticed that when I list a thread using the *l* command that
>some articles are prefixed by the number of lines in that article.  With
>the 1.2 PL2 version I built this doesn't appear to work.
>
>Dummy Example:
>
>    0    [  23] somebody@nowehere
>    1    [  10] somebody@nowehere
>    2    [  40] somebody@nowehere
>
>The number of lines is shown in "[..]", but with my version this is
>always zero, i.e.
>
>    3    [   0] collis@hpcssg.serigate.philips.nl
>
>If you display the header block using *^h* then I appear to have a
>missing "Lines:"  entry from the header.  Despite perusing the source I
>cannot work out how to ensure that "Lines:  " field is added to the
>header.


I've noticed this with every message I post from TIN.  There's
always a value of zero affixed to the number of lines with my
post when you list the thread.  I'm actually using STRN right
now.


Sean





-- 
===============================================================================
 Sean V. Kelley                        kelley@ede.sanders.lockheed.com  (mime)
 Avionics Division,      B'aite liom fe/in bheith ar thaobh mhalai/ shle/ibhe,
 Lockheed Sanders, Inc.          Agus caili/n gaelach a bheith 'mo chomhair
Re: TIN 1.2 PL2 - missing line numbers
#8827
Author: Tom J Parry
Date: Sat, 30 Apr 1994 08:00
28 lines
1999 bytes
On Fri, 29 Apr 1994 15:40:42 GMT, Sean V. Kelley wrote:
> >The number of lines is shown in "[..]", but with my version this is
> >always zero, i.e.
> >
> >    3    [   0] collis@hpcssg.serigate.philips.nl
> >
> >If you display the header block using *^h* then I appear to have a
> >missing "Lines:"  entry from the header.  Despite perusing the source I
> >cannot work out how to ensure that "Lines:  " field is added to the
> >header.

> I've noticed this with every message I post from TIN.  There's
> always a value of zero affixed to the number of lines with my
> post when you list the thread.  I'm actually using STRN right
> now.

Yup, TIN does not insert the Lines header. I patched my version a while ago
to do it but since our server was upgraded to INN I have let those patches
lapse.

If your article goes through _any_ INN sight on its way out into the world,
it will get a Lines: header added so chances are that by the time most
people read your article, there will be a Lines: header. If I can find the
Lines: patches I have I will post them but don't hold your breath :-)

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Re: TIN 1.2 PL2 - missing line numbers
#8945
Author: Geoff Collis
Date: Mon, 09 May 1994 12:02
39 lines
2793 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
: On Fri, 29 Apr 1994 15:40:42 GMT, Sean V. Kelley wrote:
: > >The number of lines is shown in "[..]", but with my version this is
: > >always zero, i.e.
: > >
: > >    3    [   0] collis@hpcssg.serigate.philips.nl
: > >
: > >If you display the header block using *^h* then I appear to have a
: > >missing "Lines:"  entry from the header.  Despite perusing the source I
: > >cannot work out how to ensure that "Lines:  " field is added to the
: > >header.

: > I've noticed this with every message I post from TIN.  There's
: > always a value of zero affixed to the number of lines with my
: > post when you list the thread.  I'm actually using STRN right
: > now.

: Yup, TIN does not insert the Lines header. I patched my version a while ago
: to do it but since our server was upgraded to INN I have let those patches
: lapse.

: If your article goes through _any_ INN sight on its way out into the world,
: it will get a Lines: header added so chances are that by the time most
: people read your article, there will be a Lines: header. If I can find the
: Lines: patches I have I will post them but don't hold your breath :-)

Many thanks to Sean and Tom, for their help.  Unfortunately locally we
run CNews, and many of the newsgroups are not propagated offsite.  The
patch hasn't arrived...  I guess Tom can no longer find it!

If anyone else can supply this patch for TIN 1.22 PL2, then please send
to me at the above email address. 

--
 Geoff Collis, CSSG, Philips Semiconductors, Southampton, U.K.
 email: collis@hpcssg.serigate.philips.nl
 tel  : +44 703 316360; fax : +44 703 316303       <\---/>
 #include "std_disclaimer.h"                       ( . . )
-------------------------------------------------ooO--U--Ooo--
Re: TIN 1.2 PL2 - missing line numbers
#8961
Author: Tom J Parry
Date: Tue, 10 May 1994 02:18
377 lines
11524 bytes
On Mon, 9 May 1994 12:02:45 GMT, Geoff Collis wrote:
> Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:

> : If your article goes through _any_ INN sight on its way out into the world,
> : it will get a Lines: header added so chances are that by the time most
> : people read your article, there will be a Lines: header. If I can find the
> : Lines: patches I have I will post them but don't hold your breath :-)

> Many thanks to Sean and Tom, for their help.  Unfortunately locally we
> run CNews, and many of the newsgroups are not propagated offsite.  The
> patch hasn't arrived...  I guess Tom can no longer find it!

> If anyone else can supply this patch for TIN 1.22 PL2, then please send
> to me at the above email address. 

I have searched about and eventually found the patches. They are not to
1.22pl2 though. They are to the 251093 beta of 1.23. For this reason you
may find that there is considerable fuzz in the patches. I have attempted
to remove all bits that do not relate to the Lines: header but some may
have slipped through. They won't break anything but they may not go in
cleanly. Have a careful look at any rejects you get and if you can't fix
them, post details or mail them to me.

I have not maintained the Lines: patches in later beta copies that Iain has
sent me since we now have an INN server.

Here are the patches:

diff -u3 tin-1.23b2.orig/inews.c tin-1.23b2.patched/inews.c
--- tin-1.23b2.orig/inews.c	Thu Oct  7 15:45:34 1993
+++ tin-1.23b2.patched/inews.c	Mon Oct 25 22:26:20 1993
@@ -378,14 +378,15 @@
 
 
 int 
-submit_file (name)
+submit_file (name, lines)
 	char *name;
+	int   lines;
 {
 	char buf[LEN];
 	char *cp = buf;
 	int ret_code;
 
-	insert_x_headers (name);
+	insert_x_headers (name, lines);
 
 	if (read_news_via_nntp && use_builtin_inews) {
 #ifdef DEBUG
diff -u3 tin-1.23b2.orig/post.c tin-1.23b2.patched/post.c
--- tin-1.23b2.orig/post.c	Mon Oct 25 22:23:55 1993
+++ tin-1.23b2.patched/post.c	Tue Nov  2 21:27:52 1993
@@ -154,8 +154,9 @@
  */
 
 int 
-check_article_to_be_posted (article)
+check_article_to_be_posted (article, lines)
 	char *article;
+	int  *lines;
 {
 	char *ngptrs[NGLIMIT];
 	char line[LEN], *cp, *cp2;
@@ -166,17 +167,18 @@
 	int errors = 0;
 	int found_newsgroups_line = FALSE;
 	int found_subject_line = FALSE;
+	int got_long_line = FALSE;
 	int init = TRUE;
 	int ngcnt = 0;
 	int nglens[NGLIMIT];
-	int oldraw;	/* save previous raw state */
+	int oldraw;	/* To save previous raw status */
 
 	if ((fp = fopen (article, "r")) == (FILE *) 0) {
 		perror_message (txt_cannot_open, article);
 		return FALSE;
 	}
 
-	oldraw = RawState();	/* save state */
+	oldraw = RawState(); /* save state */
 
 	while (fgets (line, sizeof (line), fp) != NULL) {
 		cnt++;
@@ -196,6 +198,7 @@
 		}
 		if ((len == 0) && (cnt >= 2)) {
 			end_of_header = TRUE;
+			*lines = 0;
 			break;
 		}
 		/* 
@@ -284,6 +287,7 @@
 	 * Check the body of the article for long lines 
 	 */
 	while (fgets (line, sizeof (line), fp)) {
+		(*lines)++;
 		cnt++;
 		cp = strrchr (line, '\n');
 		if (cp != (char *) 0) {
@@ -297,11 +301,12 @@
 				col++;
 			}
 		}
-		if (col > MAX_COL) {
+		if (col > MAX_COL && !got_long_line) {
 			setup_check_article_screen (&init);
 			fprintf (stderr, txt_warn_art_line_too_long, MAX_COL, cnt, line);
 			fflush (stderr);
-			break;
+			got_long_line = TRUE;
+			/*break;*/
 		}
 	}
 	if (! end_of_header) {
@@ -367,11 +373,13 @@
 {
 	FILE *fp;
 	char ch, *ptr;
	char ch_default = 'p';
 	char group[PATH_LEN];
 	char subj[PATH_LEN];
 	char buf[LEN], tmp[LEN];
-	int i, done = FALSE;
+	char mail_to[LEN];
+	char prompt[LEN];
+	int ret_code, i, done = FALSE, lines;
 
 	if (! can_post) {
 		info_message (txt_cannot_post);
@@ -511,14 +519,14 @@
 		switch (ch) {
 		case 'e':
 			invoke_editor (article, start_line_offset);
-			while (! check_article_to_be_posted (article)) {
+			while (! check_article_to_be_posted (article, &lines)) {
 				do {
 					sprintf (msg, "%s%c", txt_bad_article, 'e');
 					wait_message (msg);
 					MoveCursor (cLINES, (int) strlen (txt_bad_article));
 					if ((ch = (char) ReadCh ()) == CR)
 						ch = 'e';
				} while (! strchr ("eq\033", ch));
 				if (ch == 'e') {
 					invoke_editor (article, start_line_offset);
 				} else {
@@ -540,9 +549,9 @@
 			invoke_ispell (article);
 			break;
 
 		case 'p':
 			wait_message (txt_posting);
-			if (submit_file (article)) {
+			if (submit_file (article, lines)) {
 				Raw (FALSE);
 				info_message (txt_art_posted);
 				reread_active_for_posted_arts = TRUE;		
@@ -551,6 +575,7 @@
 				rename_file (article, dead_article);
 				Raw (FALSE);
 				error_message (txt_art_rejected, dead_article);
+				ReadCh();
 				return;
 			}
 		}
@@ -593,10 +618,12 @@
 {
 	FILE *fp;
 	char ch;
	char ch_default = 'p';
 	char subj[LEN];
 	char buf[LEN];
-	int i, redraw_screen = FALSE;
+	char mail_to[LEN];
+	char prompt[LEN];
+	int ret_code, i, redraw_screen = FALSE, lines, n;
 
 	if (! can_post) {
 		info_message (txt_cannot_post);
@@ -614,7 +641,12 @@
 	*posted = FALSE;
 	start_line_offset = 6;
 
-	if (active[my_group[cur_groupnum]].moderated == 'm') {
+	n = find_group_index (group);
+
+	/* We should not have n==-1 here. Someone should have checked the group */
+	assert (n != -1);
+
+	if (active[n].moderated == 'm') {
 		sprintf (msg, txt_group_is_moderated, group);
 		if (! prompt_yn (cLINES, msg, 'y')) {
 			clear_message ();
@@ -680,7 +712,7 @@
 		switch (ch) {
 		case 'e':
 			invoke_editor (article, start_line_offset);
-			while (! check_article_to_be_posted (article)) {
+			while (! check_article_to_be_posted (article, &lines)) {
 				do {
 					sprintf (msg, "%s%c", txt_bad_article, 'e');
 					wait_message (msg);
@@ -710,9 +743,9 @@
 			invoke_ispell (article);
 			break;
 
 		case 'p':
 			wait_message (txt_posting);
-			if (submit_file (article)) {
+			if (submit_file (article, lines)) {
 				info_message (txt_art_posted);
 				*posted = TRUE;
 				reread_active_for_posted_arts = TRUE;		
@@ -721,7 +769,7 @@
 				rename_file (article, dead_article);
 				sprintf (buf, txt_art_rejected, dead_article);
 				info_message (buf);
-				sleep (3);
+				ReadCh();
 				return (redraw_screen);
 			}
 		}
@@ -758,9 +806,12 @@
 {
 	FILE *fp;
 	char ch, *ptr;
	char ch_default = 'p';
 	char buf[LEN];
+	char mail_to[LEN];
+	char prompt[LEN];
 	int i;
+	int lines;
 	int ret_code = POSTED_NONE;
 	
 	/*
@@ -876,7 +927,7 @@
 		switch (ch) {
 		case 'e':
 			invoke_editor (article, start_line_offset);
-			while (! check_article_to_be_posted (article)) {
+			while (! check_article_to_be_posted (article, &lines)) {
 				do {
 					sprintf (msg, "%s%c", txt_bad_article, 'e');
 					wait_message (msg);
@@ -907,9 +959,9 @@
 			ret_code = POSTED_REDRAW;
 			break;
 			
 		case 'p':
 			wait_message (txt_posting);
-			if (submit_file (article)) {
+			if (submit_file (article, lines)) {
 				info_message (txt_art_posted);
 				ret_code = POSTED_OK;
 				reread_active_for_posted_arts = TRUE;		
@@ -918,7 +985,7 @@
 				rename_file (article, dead_article);
 				sprintf (buf, txt_art_rejected, dead_article);
 				info_message (buf);
-				sleep (3);
+				ReadCh();
 				return (ret_code);
 			}
 		}
@@ -1324,7 +1435,7 @@
 			find_mail_header (HEADER_TO, nam, mail_to);
 			sprintf (msg, txt_mailing_to, mail_to);
 			wait_message (msg);
-			insert_x_headers (nam);
+			insert_x_headers (nam, 0);
 #ifdef M_UNIX
 			sprintf (buf, "%s \"%s\" < %s", mailer, mail_to, nam);
 #else
@@ -1553,7 +1664,7 @@
 
 		case 'd':
 			wait_message (txt_deleting_art);
-			if (submit_file (delete)) {
+			if (submit_file (delete, 0)) {
 				info_message (txt_art_deleted);
 				goto delete_article_done;
 			} else {
@@ -1582,8 +1693,10 @@
 {
 	char buf[LEN];
 	char ch;
	char ch_default = 'p';
 	FILE *fp;
+ 	char mail_to[LEN];
+ 	char prompt[LEN];
 	int i, ret_code = POSTED_NONE;
 	
 	start_line_offset = 4;
@@ -1606,10 +1719,12 @@
 		fprintf (fp, "Reply-To: %s\n", reply_to);
 		start_line_offset++;
 	}
-	if (*note_h_distrib) {
+	if (*note_h_distrib)
 		fprintf (fp, "Distribution: %s\n", note_h_distrib);
-		start_line_offset++;
-	}
+	else
+		fprintf (fp, "Distribution: %s\n", my_distribution);
+
+	start_line_offset++;
 
 	fprintf (fp, "\n[ Article crossposted from %s ]", note_h_newsgroups);
 	get_author (FALSE, respnum, buf);
@@ -1631,13 +1746,17 @@
 			MoveCursor (cLINES, (int) strlen (msg)-1);
 			if ((ch = (char) ReadCh ()) == CR)
 				ch = ch_default;
		} while (! strchr ("epq\033", ch));
 		switch (ch) {
 		case 'e':
 			invoke_editor (article, start_line_offset);
 			ret_code = POSTED_REDRAW;
 			break;
 
+		case 'i':
+			invoke_ispell (article);
+			break;
+
 		case 'q':
 		case ESC:
 			if (unlink_article)
@@ -1647,7 +1780,7 @@
 
 		case 'p':
 			wait_message (txt_crosspost_an_article);
-			if (submit_file (article)) {
+			if (submit_file (article, 0)) {
 				info_message (txt_art_posted);
 				ret_code = POSTED_OK;
 				reread_active_for_posted_arts = TRUE;		
@@ -1675,8 +1808,9 @@
 
 
 void 
-insert_x_headers (infile)
-	char *infile;
+insert_x_headers (infile, lines)
+  	char *infile;
+ 	int   lines;
 {
 	char line[LEN];
 	char outfile[PATH_LEN];
@@ -1688,6 +1822,9 @@
 		if ((fp_out = fopen (outfile, "w")) != NULL) {
 			while (fgets (line, sizeof (line), fp_in) != NULL) {
 				if (! gotit && line[0] == '\n') {
+					if (lines) {
+						fprintf (fp_out, "Lines: %d\n", lines);
+					}
 					if (active[my_group[cur_groupnum]].type == GROUP_TYPE_MAIL) {
 						fprintf (fp_out, "X-Mailer: TIN [version %s PL%s]\n\n",
 							VERSION, PATCHLEVEL);
diff -u3 tin-1.23b2.orig/select.c tin-1.23b2.patched/select.c
--- tin-1.23b2.orig/select.c	Mon Oct 25 22:23:57 1993
+++ tin-1.23b2.patched/select.c	Tue Nov  2 21:29:02 1993
@@ -613,6 +613,11 @@
 						if (buf[0] == '\0')
 							break;
 						strcpy (post_group, buf);
+						if (find_group_index (post_group) == -1) {
+							sprintf (msg, txt_not_in_active_file, post_group);
+							info_message (msg);
+							break;
+						}
 					} else {
 						strcpy (post_group, active[my_group[cur_groupnum]].name);
 					}

-- 
Tom J Parry.
Your reality is a figment of my imagination.
Re: TIN 1.2 PL2 - missing line numbers
#8966
Author: John Line
Date: Tue, 10 May 1994 19:18
42 lines
3298 bytes
In article <CpJAsM.BM7@ukpsshp1.serigate.philips.nl>,
Geoff Collis <collis@hpcssg.serigate.philips.nl> wrote:
>Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
>:
>: Yup, TIN does not insert the Lines header. I patched my version a while ago
>: to do it but since our server was upgraded to INN I have let those patches
>: lapse.
>
>: If your article goes through _any_ INN sight on its way out into the world,
>: it will get a Lines: header added so chances are that by the time most
>: people read your article, there will be a Lines: header. If I can find the
>: Lines: patches I have I will post them but don't hold your breath :-)
>
>Many thanks to Sean and Tom, for their help.  Unfortunately locally we
>run CNews, and many of the newsgroups are not propagated offsite.  The
>patch hasn't arrived...  I guess Tom can no longer find it!
>
>If anyone else can supply this patch for TIN 1.22 PL2, then please send
>to me at the above email address.

Assuming you have some influence over the server management (or are the
management!), and the version of C-news is not vastly different from the
version I ran until a few months ago, the solution is to edit the *server*
inews shell script (not the client inews used by the reader to post) and edit
the block of commented-out lines which will insert the Lines: header. Then it
will be done for all locally-posted articles, regardless of the remote posting
software used. Note that the server inews (in pre-performance release C-news,
at least) is linked or copied (depending on whether the directories are on the
same partition) into multiple directories (5?). Be careful to keep it
consistent in all installed locations, though I'm not sure that all the copies
are actually used.

I think this discussion is the first I've seen which even considered adding the
information at the reader side of the posting connection (which is not to say
people haven't been doing it for years without me hearing of it!). All previous
discussion that I recall has been about doing it on the server.

                                John Line
-- 
John Line - Cambridge University Computing Service, Computer Laboratory,
            New Museums Site, Pembroke Street, Cambridge CB2 3QG, ENGLAND.
Internet: jml4@cus.cam.ac.uk  JANET: jml4@uk.ac.cam.cus  Phone: +44 223 334708
Re: TIN 1.2 PL2 - missing line numbers
#8980
Author: Iain Lea
Date: Wed, 11 May 1994 08:43
9 lines
1321 bytes
Tom J Parry (parry@yoyo.cc.monash.edu.au) wrote:
: I have searched about and eventually found the patches. They are not to
: 1.22pl2 though. They are to the 251093 beta of 1.23. For this reason you

I'll add this patch into the next release.

-- 
iain.lea@erlm.siemens.de  +49-9131-7-43402
 'Raus aus dem Alltag, rein in die Kiste'
Re: TIN 1.2 PL2 - missing line numbers
#9106
Author: Geoff Collis
Date: Fri, 20 May 1994 18:09
25 lines
2121 bytes
Geoff Collis (collis@ukpsshp1.serigate.philips.nl) wrote:

: Please note, due to being on holiday, I am unlikely to be able to try
: out the CNews patch, nor the TIN patch until next week.  I will post a
: follow-up to let everyone know if/how I manage to solve the problem.

: Many thanks for the help so far.

I managed to get the TIN patches to work.  The patch to CNews (inews)
didn't work.

The changes to TIN 1.22 PL2 are rather trivial...  once you know how! :-)

From Tom's differences, you only need to modify inews.c and post.c,
and changes the insert_x_headers, check_article_to_be_posted, and
submit_file routines wrt to the "lines" parameter.

I'll post a proper differences once I've worked how Tom generated his! :-)

--
 Geoff Collis, CSSG, Philips Semiconductors, Southampton, U.K.
 email: collis@hpcssg.serigate.philips.nl
 tel  : +44 703 316360; fax : +44 703 316303       <\---/>
 #include "std_disclaimer.h"                       ( . . )
-------------------------------------------------ooO--U--Ooo--
Re: TIN 1.2 PL2 - missing line numbers
#9115
Author: Tom J Parry
Date: Sat, 21 May 1994 08:41
13 lines
1555 bytes
On 10 May 1994 19:18:47 GMT, John Line wrote:

>I think this discussion is the first I've seen which even considered adding the
>information at the reader side of the posting connection (which is not to say
>people haven't been doing it for years without me hearing of it!). All previous
>discussion that I recall has been about doing it on the server.

I find this hard to believe. Except for tin (until I patched it), all posts
from our university had Lines: headers. I can therefore only conclude that
that was the readers doing it.o
-- 
Tom J Parry.
Your reality is a figment of my imagination.
Re: TIN 1.2 PL2 - missing line numbers
#9252
Author: John Line
Date: Sun, 29 May 1994 18:45
61 lines
3581 bytes
In article <2rkhfp$862@harbinger.cc.monash.edu.au>,
Tom J Parry <parry@yoyo.cc.monash.edu.au> wrote:
>On 10 May 1994 19:18:47 GMT, John Line wrote:
>
>>I think this discussion is the first I've seen which even considered adding the
>>information at the reader side of the posting connection (which is not to say
>>people haven't been doing it for years without me hearing of it!). All previous
>>discussion that I recall has been about doing it on the server.
>
>I find this hard to believe. Except for tin (until I patched it), all posts
>from our university had Lines: headers. I can therefore only conclude that
>that was the readers doing it.

It looks like a case of "your mileage may vary, especially with different
software versions".

When I set up our original news server, using the final (?) version of C-news
before the Performance Release (which was released about the time our server
was scheduled to go live), xrn users complained about getting "[?]" for all
locally-posted articles (none of the other newsreaders made it so obvious it
wasn't there...), so I looked around. In inews I found the following, extracted
here from the raw (uncustomised) version in the original source tree):

----------
# post with new headers and .signature
(anne.jones <$inhdrs >/tmp/in$$realtmp	# bash headers
 status=$?
 mv /tmp/in$$realtmp $inhdrs
 cat $inhdrs		# | grep -v "^Lines:"	# uncomment if generating Lines:
 case $status in
 0)	;;
 *)
	trap 0			# no cleanup yet
	exit $status		# anne.jones was unhappy - bail out
	;;
 esac
# lines="`			# sop to msb, just uncomment to use
# (sed 1d $inbody;		# take out the first (blank) line
# if test -r $HOME/.signature; then
# 	echo '-- '
# 	sed 4q $HOME/.signature
# fi) | wc -l `"
# echo Lines: $lines
..
----------

I simply uncommented the grep in the first half, and the block of lines in the
second half, and all the locally posted articles appeared with Lines:
headers... Since I never looked at any other version of C-news (we're now
running INN), I've no idea how much their versions of inews may differ, though
my original post certainly prompted "I can't see the code to do it in inews"
comments. I'm not saying there are no newsreaders that automatically insert
a Lines: header, but none of the ones used here, at the time, seemed to. This
followup is mainly just to show that in at least one C-news version, the
server *could* do it.

                                John Line
-- 
John Line - Cambridge University Computing Service, Computer Laboratory,
            New Museums Site, Pembroke Street, Cambridge CB2 3QG, ENGLAND.
Internet: jml4@cus.cam.ac.uk  JANET: jml4@uk.ac.cam.cus  Phone: +44 223 334708
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