On Tue, 2004-05-18 at 10:39, Randall Shaw wrote:
> Isn't there a command to clear the ENTIRE mailq ? Cancelmsg just does one at
> a time. I want to clear out an entire queue.
If you really want to clear the entire queue you can delete all the
entries in spool/msgq and spool/msgs, and restart courierd. I find a
lot of undeliverable DSNs in my queue, and sporadically delete them
using a brief awk script:
# cat deldsn.awk
FNR < 5 { state = 1; next }
state == 1 { qid = $2; del = 0; state++; next }
state == 2 { if (NF == 1) del = 1; state++; next }
/^$/ { if (del) print "cancelmsg", qid; state=1 }
# mailq | awk deldsn.awk | sh
# courier flush
The script prints qids for messages with an empty sender's address.
-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users