Re: [exim] Remove "not reached" emails

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Igor Karpov
Ημερομηνία:  
Προς: jori.hamalainen
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Remove "not reached" emails
jori.hamalainen@??? wrote:
>>exim -bp | grep 'frozen' | xargs -L 1 exim -Mrm
>>
>>And if you want to remove not only 'frozen' messages, but
>>also undelivered bounces, you may want to play with regexp to
>>catch '<>'.
>
>
> But this will also remove messages from me@??? and all derivates with (sub)string frozen. Like "deepfrozen@???".
>
> " \*\*frozen\*\*$" helps a bit because **frozen** is last string in mailqueue line separated with whitespace..


Agree. Or, at least, grep '*** frozen ***'