🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #12824

Looking for tool to clean up newsrc file

#12824
From: lvirden
Date: Tue, 15 Nov 1994 19:00
28 lines
2140 bytes
Specs:
1. I do NOT want to just truncate the lines in my .newsrc file!
2. Tool must be able to handle very long lines.
3. I don't particularly need it do to anything about the ordering of
	lines within newsrc - I use eep for that.
4. What I do want is something that will wander thru my newsrc file and
trim lines I currently have unsubscribed (and the subscribed ones as well
perhaps) to reflect the current state of the articles within the NNTP
server / active file.


for i in lines of newsrc
	break up line of text , look to see what the lowest article is, set
		first entry to (either 0 or 1, depending on how things are
		set currently) thru lowest-1, then, for each of the remaining
		articles listed, check to see if it is present, and if not,
		add the number to the list of 'read' articles.  Collapse
		numbers where possible into ranges.

Anyone have such a critter?  What I would _really_ wish for is the above
functionality added to eep - but that's probably too much to hope for.
-- 
:s Great net resources sought...
:s Larry W. Virden                 INET: larry.virden@cas.org
:s <URL:http://www.mps.ohio-state.edu/cgi-bin/hpp?lvirden_sig.html>
The task of an educator should be to irrigate the desert not clear the forest.
Technical Details
Message-ID: <1994Nov15.190054.28819@chemabs.uucp>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!proto.ida.org!bah.com!uunet!usc!howland.reston.ans.net!news.sprintlink.net!malgudi.oar.net!chemabs!lwv26

Show Full Headers
Complete Article Headers
Message-ID: <1994Nov15.190054.28819@chemabs.uucp>
Subject: Looking for tool to clean up newsrc file
Date: Tue, 15 Nov 1994 19:00:54 GMT
From: lvirden@cas.org
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.mbox.zip!nntp.gmd.de!xlink.net!sol.ctr.columbia.edu!proto.ida.org!bah.com!uunet!usc!howland.reston.ans.net!news.sprintlink.net!malgudi.oar.net!chemabs!lwv26
Newsgroups: news.software.readers,comp.lang.perl
Content-Type: text/plain; charset=US-ASCII
Followup-To: news.software.readers
Sender: lwv26@chemabs.uucp (Larry W. Virden)
Reply-To: lvirden@cas.org
Content-Transfer-Encoding: 7BIT
Organization: Nedriv Software and Shoe Shiners, Uninc.
Mime-Version: 1.0
Lines: 27