Re: [EXIM] Delete frozen messages

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: mark david mcCreary
Fecha:  
A: Fabian Vasconez
Cc: exim-users
Asunto: 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/ ***