Re: [Exim] need help with a condition

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Peter N Lewis
Fecha:  
A: Nico Erfurth, Christian Frömmel, exim
Asunto: Re: [Exim] need help with a condition
At 10:38 +0200 12/7/02, Nico Erfurth wrote:

>Sometimes the exim-expansion can be VERY confusing ;)


Definitely!

Has anyone considered writing an exim condition compiler? Something
that would turn:

(($message_age < 300) && (exists(/var/lock/MASTER))) ||
((!$h_X-delayed:) && !(exists(/var/lock/MASTER)))

into:

${if or {\
        { and\
            {\
                { < {$message_age}{300}}\
                { exists {/var/lock/MASTER}}\
            }\
        }\
        { and\
            {\
                {!def:h_X-delayed:}\
                {!exists {/var/lock/MASTER}}\
            }\
        }\
        }{1}{0}\
    }



Now that would be a usful utility!
    Peter.
--
<http://www.interarchy.com/>  <http://download.interarchy.com/>