Re: trnkill

Arnoud (galactus@stack.urc.tue.nl)
Tue, 10 Sep 1996 20:15:53 +0200

-----BEGIN PGP SIGNED MESSAGE-----

In article <t8GNysw3BIbf091yn@iglou.com>,
mtj@iglou.com (Michael Jones) wrote:
> I now have trnkill working on my unix account. The problem is that
> I use separate newsrc files for different things. For example,
> ".newsrc-uqwk" for the groups I download via uqwk. How do I get
> trnkill to use THAT file rather than plain ol' .newsrc?

trnkill just calls trn with some fancy switches and macros to do
the auto-killing. I'm not sure if trn has a switch to specify an
alternate .newsrc (see "man trn" to be sure), but it would be rather
simple to hack support in for this..

# Add this to your script to get support for multiple .newsrcs
# Make sure it's at the top, before the confusing stuff starts

if [ -s "$1" ] # File exists and isn't empty
then
mv .newsrc newsrc
cp "$1" .newsrc
else
if [ -s "$2" ] # To support -d switch for debug mode
then
mv .newsrc newsrc
cp "$2" .newsrc
fi
fi

# Add this to the very end of the script...

if [ -s newsrc ]
then
mv newsrc .newsrc
fi

Galactus

- --
To find out more about PGP, send mail with HELP PGP in the SUBJECT line to me.
E-mail: galactus@stack.urc.tue.nl - Please PGP encrypt your mail if you can.
Finger galactus@turtle.stack.urc.tue.nl for public key (key ID 0x416A1A35).
Anonymity and privacy site: <http://www.stack.urc.tue.nl/~galactus/remailers/>

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: cp850

iQCVAgUBMjXAZTyeOyxBaho1AQFXOgP5AbCJZ36S7M9TA7PbTZnI/gbiHWjs3iHQ
cu8h0kCxMZIYMYR2I1ie/P6sQ03leknPRRkU9Unual0Me4afU3HKy+okOCwIcmYQ
OFnL0nz1R+XRi8V8u2F3Fo7YHlHxJYxaJ/uOMvLu6z4Uxd1cBdwmRzHKudiC9/BC
7fxtfwJMXo0=
=LnhY
-----END PGP SIGNATURE-----