> I have my mailq filled with about 2500 messages, but I want to discard
> them all. The cancelmsg command requires a msgid, there's no way to
> wildcard.
You can use this simple shell script to cancel any message in the queue
with Courier's cancelmsg command, all on one single line:
for i in `mailq | egrep '^[0-9]' | awk '{print $2}'`; do echo "Dropping
message $i..."; cancelmsg $i; done
HTH. Ciao, Dino.
____________________________________
JOB OPPORTUNITY PER GIOVANI LAUREATI
Martedi' 4 Novembre presso la sede di Roma in Via Zoe Fontana n. 220, REplat
seleziona personale per lo stage dell'Area Commerciale.
Per info e adesioni: [EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users