🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by William G. S. Brown Mon, 04 Oct 1993 14:27
Missing Number of Lines
#4985
Author: William G. S. Brown
Date: Mon, 04 Oct 1993 14:27
5 lines
913 bytes
When I enter :post in a newsgroup (like this one) the resulting posted
article does not contain the number of lines (like all the rest). 
I must be doing something wrong -- what?

Thanks.
Re: Missing Number of Lines
#4929
Author: Kristian Koehntopp
Date: Tue, 05 Oct 1993 12:04
49 lines
2800 bytes
In <CEDMu9.4Iw@aplcenmp.apl.jhu.edu> brownwm@aplcenmp.apl.jhu.edu (William G. S. Brown) writes:
>When I enter :post in a newsgroup (like this one) the resulting posted
>article does not contain the number of lines (like all the rest). 
>I must be doing something wrong -- what?

[ This problem is not related to nn, the news user agent, but to
  cnews, the news transport agent, you are using. It is a
  frequently asked question as well.
]

Your news system administrator is using the cnews package by
Henry Spencer. He (the admin) has decided not to generate line
counts or he did not know better, since this feature is not
documented very well.

Your news system administrator may enable this feature by
editing the /bin/inews shell script. He has to look for a
comment about line numbers (search for the string "uncomment" in
/bin/inews) and follow the instructions provided there.

For example, my inews code reads

------------------------------------------------------------------------------
[ del del del ]

 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
 
[ del del del ]
------------------------------------------------------------------------------

Note that I have already activated the relevant code at my
system.

There exists a patch for nn that enables to program to count
lines for all articles without a Lines:-header line. The patch
slows down nn performance, especially over NNTP.

Kristian
-- 
Kristian Koehntopp, Harmsstrasse 98, 24114 Kiel 1, +49 431 676689
"Die Akkumulation fachspezifischer Termini ist zwar das Privileg 
 wissenschaftlicher Diktion, wird aber in dieser kompakten Form ad absurdum 
 gefuehrt..."
Re: Missing Number of Lines
#4930
Author: Rudi van Houten
Date: Tue, 05 Oct 1993 12:46
24 lines
1563 bytes
In <CEDMu9.4Iw@aplcenmp.apl.jhu.edu> brownwm@aplcenmp.apl.jhu.edu (William G. S. Brown) writes:

>When I enter :post in a newsgroup (like this one) the resulting posted
>article does not contain the number of lines (like all the rest). 
>I must be doing something wrong -- what?

>Thanks.

Somewhere in your script inews the lines computing and putting the
linecount are commented out (in Cnews). Uncomment them and it will work.

 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

--
Rudi van Houten	<rudi@cc.ruu.nl>
Academisch Computer Centrum Utrecht / Besturings Systemen
Budapestlaan 8  -  3584 CD  -  Utrecht  -  Netherlands
:-) Experience is the harvest of many mistakes.
Re: Missing Number of Lines
#4940
Author: Bruce Fisher
Date: Wed, 06 Oct 1993 15:24
38 lines
1964 bytes
acbhour@phil.ruu.nl (Rudi van Houten) writes:

>In <CEDMu9.4Iw@aplcenmp.apl.jhu.edu> brownwm@aplcenmp.apl.jhu.edu (William G. S. Brown) writes:

>>When I enter :post in a newsgroup (like this one) the resulting posted
>>article does not contain the number of lines (like all the rest). 
>>I must be doing something wrong -- what?

>>Thanks.

>Somewhere in your script inews the lines computing and putting the
>linecount are commented out (in Cnews). Uncomment them and it will work.

> 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

This is partially correct, it depends on which version of Cnews you have.

In the more recent Performance Release a lot of stuff has been taken out of
inews.
The Lines: header is now to be found in $NEWSBIN/inject/pnews with
instructions on which lines to comment and uncomment.

Bruce.


-- 
Bruce Fisher
Quality Control Laboratory,		email :  bruce@smtl.demon.co.uk
Bridgend General Hospital,		
Bridgend,				
SOUTH WALES,  CF31 1JP			
=== "I read the news today,  OH BOY !!!" ===
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