Re: [EXIM] Delete frozen messages

Page principale
Supprimer ce message
Répondre à ce message
Auteur: mark david mcCreary
Date:  
À: Fabian Vasconez
CC: exim-users
Sujet: 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/ ***