Re: [exim] how to delete emails for particular domain

Top Page
Delete this message
Reply to this message
Author: zbigniew szalbot
Date:  
To: Graeme Fowler
CC: exim users
Subject: Re: [exim] how to delete emails for particular domain
Hello,

Graeme Fowler pisze:
> On Wed, 2008-01-02 at 15:34 +0100, zbigniew szalbot wrote:
> > I have a lot of mailman bounces destined for an admin address (my
> > error). I would like to delete them from queue (no need to send them).
> > How do I do that? I can delete a single message using -Mrm option but
> > can anyone share how to do that for all messages destined for one
> > recipient? We're talking about 4K emails in this instance.
>
> Assuming a sender of the form:
>
> mailman-admin@???
>
> you'd do:
>
> exipick -f "mailman-admin@???" -i |\
>    xargs -i exim -Mrm {}

>
> exipick really is your friend, especially in cases like this :)
>

Thank you very much for your advice Graeme but xargs complains about
illegal option -i
I am reading man xargs and even if I substitute -i with -o or the like,
exim then says:
exim: malformed message id {} after -Mrm option

Thanks!

Zbigniew Szalbot