-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, Jul 09, 2003 at 04:53:33PM -0600, Jason R. Mastaler wrote:
>I don't think you can do this. 'show' and 'delete' are mutually
>exclusive.
OK. Thanks for the answer! In case anyone else is interested, here's the
script I'm using to do what I want. The intent is to run it once a month.
It saves older-than-a-month mail from the pending queue into a compressed
file and then deletes it from the queue. Anyone intending to use this
should pay attention to the hard coded filenames.
#!/bin/bash
tfile=/tmp/tmdacron.$$
/usr/bin/tmda-pending -O 1M -b -T | awk '{print $1}' > $tfile
fn=/home/kyle/mail/junk-mail-`date +%Y%m%d -d '1 month ago'`.bz2
cat $tfile | xargs /usr/bin/tmda-pending -b -S | bzip2 -9 > $fn
chmod 600 $fn
cat $tfile | xargs /usr/bin/tmda-pending -b -d > /dev/null
rm -f $tfile
- --
Kyle Hasselbacher
[EMAIL PROTECTED]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE/DMTE10sofiqUxIQRApNQAKCrqgdMuCSloYHWcaMuiq+tte0gzQCgkOcX
DKlTBJHYV/xhkKXUmMBVIOY=
=MbyE
-----END PGP SIGNATURE-----
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users