🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #11684

Re: lines: ? in tin-1.2PL2

#11684
From: Bruce Momjian
Date: Mon, 03 Oct 1994 14:03
32 lines
2346 bytes
Carlos Robinson (carlos@marin.cc.ca.us) wrote:
: Is there a patch for missing line numbers when posting in tin-1.2PL2?  

I believe the problem is with the posting system where the original
message came from.  The C-new performance release did not provide a
'line'.  Here is the relevant section from the pnews script from that
release.  I have commented out the original code(as instructed), and
noted the lines I have added to generate the "Lines:" line.

---------------------------------------------------------------------------


# 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 B.
cat $inhdrs				<---- added
echo "Lines: `wc -l <$inbody`"		<---- added
cat $inbody				<---- added
#. lines                                # NB: reads $inbody # line A
#firstline="` sed 1q $inbody `"                 # line B
#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


--
Bruce Momjian                          |  830 Blythe Avenue
root@candle.pha.pa.us                  |  Drexel Hill, Pennsylvania 19026 
  +  If your life is a hard drive,     |  (610) 353-9879(w) 
  +  Christ can be your backup.        |  (610) 853-3000(h)
Technical Details
Message-ID: <36p300$a1k@nova.voicenet.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!dsinc!netnews.upenn.edu!nova.voicenet.com!root
References: <Cwrtt6.7JD@marin.cc.ca.us>

Show Full Headers
Complete Article Headers
Message-ID: <36p300$a1k@nova.voicenet.com>
Subject: Re: lines: ? in tin-1.2PL2
Date: Mon, 03 Oct 1994 14:03:44 +0000
From: root@candle.pha.pa.us (Bruce Momjian)
References: <Cwrtt6.7JD@marin.cc.ca.us>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!europa.eng.gtefsd.com!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!newsfeed.pitt.edu!dsinc!netnews.upenn.edu!nova.voicenet.com!root
Newsgroups: news.software.readers
Organization: a consultant's basement
Lines: 32
NNTP-Posting-Host: candle-slip.voicenet.com
X-Newsreader: TIN [version 1.2 PL2]