Re: [exim] remove all frozen messages

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Bertrand CHERRIER
Data:  
Para: exim-users
Assunto: Re: [exim] remove all frozen messages
Bonjour,

Here is a little perl script I've found on the net, it works like a charm !

--------------------------------------------------------------------------------------------------

#! /usr/bin/perl -w

`/usr/sbin/exim -bp | grep "*** frozen ***" > unfreeze.txt`;

my $badmessages;

open BADMAIL, "<unfreeze.txt" or die "Could not open unfreeze.txt";

while ( $line = <BADMAIL> ) {

my ( $time, $size, $messagenumber, $sender, $status ) = split( ' ',
$line );

print "Time on queue => $time\tSize=>$size\tMessage #=>$messagenumber\n";

$badmessages .= ' ' . $messagenumber;

}

close BADMAIL;

`/usr/sbin/exim -Mrm $badmessages`;

1;
------------------------------------------------------------------------------------------------------------------------

Marten Lehmann wrote:

> Hello,
>
> is there a way to remove all frozen messages at once? The only thing I
> found is to set ignore_bounce_errors_after and timeout_frozen_after to
> 0s and run the queue again. But that way, if a message isn't frozen, a
> delivery try is done first. Is there a way to skip this delivery try?
>
> Regards
> Marten
>


--
Bertrand CHERRIER
chr@???
Linux chr 2.6.9-gentoo-r4 #1 Wed Nov 24 09:20:42 NCT 2004 x86_64 AMD Athlon(tm) 64 Processor 3200+ AuthenticAMD GNU/Linux
-----
Bow before me, for I am root