Re: [Exim] Removing/Freezing mails to a server

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nigel Metheringham
Fecha:  
A: exim-users
Asunto: Re: [Exim] Removing/Freezing mails to a server
yann@??? said:
> Not too hard to write a perl script that would do the same thing...
> BTW, don't cut and paste the above, it is untested ;>


Ding! recipients aren't on the same line as the frozen.

mailq | \
perl -00 -ne 'if (/\*frozen\*/&&/addr/) {@x=split;print "$x[2]\n";}'
|\
xargs /usr/sbin/exim -Mrm

put your wanted regexp in place of "addr" - best try it first without
the xargs phrase.

[however I did roughly test it]

    Nigel.
-- 
[ - Opinions expressed are personal and may not be shared by VData - ]
[ Nigel Metheringham                  Nigel.Metheringham@??? ]
[ Phone: +44 1423 850000                         Fax +44 1423 858866 ]