Article View: news.software.readers
Article #28174trnkill (was Re: A "procmail" for .newsrc ?)
From: Conrad Sabatier
Date: Sat, 07 Dec 1996 00:00
Date: Sat, 07 Dec 1996 00:00
55 lines
2422 bytes
2422 bytes
In article <58c16p$chq@shellx.best.com>, kimdv@best.com (Kim DeVaughn) writes: > > I've been getting a bit more serious about eliminating EMP spam and > such from my life, but now I find that my global KILL file has grown > to the point where it can be painfully slow entering a newsgroup > (especially when the system is fairly well loaded). > > Does anyone know of a package that will do for my .newsrc file what > procmail does for my email? > > I envision something I could run as a cron job, that would read my > KILL file(s), and prune the matching article numbers from my .newsrc > file just as if trn had done it in realtime. > > Of course it should do some checking to ensure that I didn't have > trn running when it goes to save the revised .newsrc file, and such. Have you tried trnkill? #!/bin/sh # trnkill - shell script to apply trn KILL files in the background # 14 Mar 89 created for rn by Jim Olsen <olsen@XN.LL.MIT.EDU> # 10 Sep 93 modified for trn 3 (or 2) by Wayne Davison <davison@borland.com> # Options: -d debug mode -- you see all gory action as it happens. # Visit all newsgroups (if trn asks about anything else, just say no) export TRNMACRO RNMACRO TERM TRNMACRO=/tmp/trnkill$$ TERM=dumb # support for trn 2.x RNMACRO=$TRNMACRO OPTIONS='-q -s -T -t -x +X ++' trap 'rm -f $TRNMACRO; exit' 1 2 3 15 cat >$TRNMACRO <<'EOF' z %(%m=[nf]?.q^J:n)^(z^) ^m ^(z^) ^j ^(z^) EOF if test X$1 = X-d; then echo "z" | trn $OPTIONS else echo "z" | trn $OPTIONS >/dev/null 2>&1 fi rm -f $TRNMACRO exit 0 -- Conrad Sabatier | conrads@neosoft.com | Eschew obfuscation. http://www.neosoft.com/~conrads |
Technical Details
Message-ID:
<58cumq$1sa@uuneo.neosoft.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<58c16p$chq@shellx.best.com>Show Full Headers
Complete Article Headers
Message-ID: <58cumq$1sa@uuneo.neosoft.com> Subject: trnkill (was Re: A "procmail" for .newsrc ?) Date: Sat, 07 Dec 1996 00:00:00 +0000 From: conrads@neosoft.com (Conrad Sabatier) References: <58c16p$chq@shellx.best.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 202912339 Content-type: text/plain; charset=us-ascii Organization: NeoSoft, Inc. Mime-version: 1.0 Reply-to: conrads@neosoft.com Newsgroups: news.software.readers,news.admin.net-abuse.usenet