🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #9671

Re: How to make my killfile tidy?

#9671
From: Nick Holloway
Date: Sun, 04 Feb 2001 09:53
22 lines
1738 bytes
elwood@news.agouros.de (Konstantinos Agouros) writes:
> I make extensive use of my killfile for threads that do not interest me.
> I usually use the 30day-kill option. Since the file is growing I would like
> to know if there is an easy way to clean it of old entries that are long
> expired or is this done anyway?

I used to use a script something like this (run daily from cron):

	cd $HOME/.nn
	if [ ! -f LOCK ]
	then
	    grep -v '^# ' kill > kill.new
	    mv kill.new kill
	fi

This relies on out of date entries being prefixed with '# '.  The check
for the LOCK file is to ensure that NN is not currently running.

-- 
 `O O'  | Nick.Holloway@pyrites.org.uk
// ^ \\ | http://www.pyrites.org.uk/
Technical Details
Message-ID: <95j8qk$f0a$1@alfie.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.109.6.150!transit.news.xs4all.nl!bullseye.news.demon.net!news.demon.co.uk!demon!alfie.demon.co.uk!news.pyrites.org.uk!not-for-mail
References: <elwood.981196074@news.agouros.de>

Show Full Headers
Complete Article Headers
Message-ID: <95j8qk$f0a$1@alfie.demon.co.uk>
Subject: Re: How to make my killfile tidy?
Date: Sun, 04 Feb 2001 09:53:24 +0000
From: Nick.Holloway@pyrites.org.uk (Nick Holloway)
References: <elwood.981196074@news.agouros.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!194.109.6.150!transit.news.xs4all.nl!bullseye.news.demon.net!news.demon.co.uk!demon!alfie.demon.co.uk!news.pyrites.org.uk!not-for-mail
Newsgroups: news.software.nn
Organization: Alfie's Internet Node
Sender: alfie@alfie.demon.co.uk
NNTP-Posting-Host: alfie.demon.co.uk
X-NNTP-Posting-Host: alfie.demon.co.uk:158.152.44.128
X-Trace: news.demon.co.uk 981280703 nnrp-01:21250 NO-IDENT alfie.demon.co.uk:158.152.44.128
X-Complaints-To: abuse@demon.net
X-Newsreader: NN version 6.5.0 CURRENT #119
Lines: 21