[EMAIL PROTECTED] a écrit :
>> 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.
>
More violent :
/etc/init.d/courier stop
cd /usr/lib/courier/var/ ; rm -fR msgs/* msgq/*
/etc/init.d/courier start
You can reduce the violence of the cleaning step by using find..
For example: find . -user "theuserwhospammed" -type f -exec rm {} \;
HTH.
Jerome Blion.
-------------------------------------------------------------------------
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