*BSD News Article 78296


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!act.news.telstra.net!psgrain!iafrica.com!uct.ac.za!quagga.ru.ac.za!howland.erols.net!EU.net!newsfeed.internetmci.com!super.zippo.com!zdc!szdc!news
From: kachun@zippo.com (Kachun Lee)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: News server config
Date: 13 Sep 1996 17:30:59 GMT
Organization: Zippo
Lines: 26
Message-ID: <51c5oj$pcu@clark.zippo.com>
References: <5138jb$3i7@nexus.amp.com>
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.8 (beta 2)

In article <5138jb$3i7@nexus.amp.com>, ian.jobson@amp.com says...
>
>Our news server is not adding the line count to the posting, does
>anyone know how to configure it so that it does, the details of the
>server are as follows:
>
>   nntp version 1.15.12.1
>   cnews cleanup release with patch CR.E
>

That took me a while to find the code at the time also. 

Look into your $(NEWSBIN)/inject/pnews:

# output begins here
# POLICY: don't generate Lines: because it is optional, munged in transit
# by B News to make the count incorrect, and not pulling its weight.
# If you just *have* to generate Lines: headers, uncomment line A and comment
# out line(s) B.
firstline="` sed 1q $inbody `"
. $NEWSBIN/inject/lines             # NB: reads $inbody # line A
#case "$firstline" in               # line B
#'')    cat $inhdrs $inbody ;;          # emit the article  # line B
#*) echo | cat $inhdrs - $inbody ;;     # insert blank line # line B
#esac                       # line B