🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #976

Re: trn2.2 and .newsrc

#976
From: Felan shena Thoron'edras
Date: Sat, 04 Jan 1992 20:56
42 lines
2891 bytes
In article <9066@optilink.UUCP> manley@optilink.UUCP (Dave Manley) writes:
>In article <1992Jan2.060234.22198@jwt.UUCP> john@jwt.UUCP (John Temples) writes:
>>In article <1992Jan01.045643.7904@kithrup.COM> sef@kithrup.COM (Sean Eric Fagan) writes:
>>>In article <9036@optilink.UUCP> manley@optilink.UUCP (Dave Manley) writes:
>>>>Why does trn do anything at all with unsubscribed groups?

Funny, I asked the same thing a while back, as I thought it was a bug at
the time.  Still, it's been adequately explained this time around (was
last time, too).

>It seems to my feeble brain that somehow trn (or rn, or whatever) 
>should consolidate these long list when they refernce expired

So it should, but it doesn't seem to work, always.  So, I offer to you
what _I_ use to fix this problem occasionally (it IS worth it to fix it
eventually, if you read as many cross-post-prone groups as I do.  It's
an easy way to reduce your disk usage by 5K or so).  Jonathan Kamens
(hi jik!  thanks, it's helped a lot) wrote this for me, as I had no idea
what to do:

-----
#!/bin/sed -f

s/! *\([0-9][0-9]*\).*[,-]\([0-9][0-9]*\)$/! \1-\2/
-----
What these three lines do is find the first number for each group that you're
unsubscribed to, as that number appears in your .newsrc; then it finds the
last number on that line; then it rewrites everything between those two to
be first-last.  Makes it much easier.  (I had to modify it slightly from the
way Jonathan sent it to me, as it didn't work with some of the odder lines
I get.  That is, the lines I've gotten have had, well... One was:
rec.arts.startrek.current:6, instead of rec.arts.startrek.current: 6 the
way it was supposed to be.  I fixed it to handle similar things in the
unsubscribed groups.)
  I named it 'fix.newsrc', and run it thus:
fix.newsrc .newsrc > new.newsrc; mv new.newsrc .newsrc
  Hopefully, this will be of some use to someone...

Leanne Phillips
"Go not unto the Elves for counsel, for they will say both yea and nay."
"Now is _not_ a good time, Keiko!" - Worf, "Disaster"
"Variety is the spice of life, and I don't want to die." - Scott Borst
Technical Details
Message-ID: <10717@umd5.umd.edu>
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!sparky!uunet!wupost!darwin.sura.net!haven.umd.edu!umd5!syrinx.umd.edu!phillips
References: <1992Jan01.045643.7904@kithrup.COM> <1992Jan2.060234.22198@jwt.UUCP> <9066@optilink.UUCP>

Show Full Headers
Complete Article Headers
Message-ID: <10717@umd5.umd.edu>
Subject: Re: trn2.2 and .newsrc
Date: Sat, 04 Jan 1992 20:56:11 +0000
From: phillips@syrinx.umd.edu (Felan shena Thoron'edras)
References: <1992Jan01.045643.7904@kithrup.COM> <1992Jan2.060234.22198@jwt.UUCP> <9066@optilink.UUCP>
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!sparky!uunet!wupost!darwin.sura.net!haven.umd.edu!umd5!syrinx.umd.edu!phillips
Newsgroups: news.software.readers
Keywords: trn 2.2
Sender: news@umd5.umd.edu
Distribution: na
Organization: University of Maryland, College Park
Lines: 42