On Tue, Dec 8, 2009 at 1:11 PM, Renaud Allard <[email protected]> wrote: > Hello, > > tower wrote: >> Hi >> >> I want to remove messages from exim queue. There is a lot of message id >> but one sender, so use exim -Mrm <id-message> isn't a nice idea. I >> should use some like exim -?? <sender address>. >> >> Thanks for Your help >> > > You can do something like: > mailq | grep <sender_address> | awk '{ print $3 }' | xargs exim -Mrm
You will need more house cleaning with this one as you are assuming the sender address does not have an entry in the queue as one of the recipients. I would stick with Simon's solution. -- ## List details at http://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
