Re: [EXIM] Delete frozen messages

Góra strony
Delete this message
Reply to this message
Autor: mark david mcCreary
Data:  
Dla: Fabian Vasconez
CC: exim-users
Temat: Re: [EXIM] Delete frozen messages
>Hi there:
>
>How can I delete frozen messages from queue ....???
>



This script was posted to the list a while back.

You call it with a phrase that is in the Headers of the mail you want to
delete.

It needs to be in the same directory as the frozen messages.

For example

    ./nuke-queue-messages hippo


Would remove all messages that had the word hippo in the headers


nuke-queue-messages

#!/bin/sh
set -x

grep -l $1 *H 2>/dev/null | sed -e 's/-H$//' | xargs exim -Mrm




--
*** Exim information can be found at http://www.exim.org/ ***