Re: [Exim] need help with a condition

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Nico Erfurth
Fecha:  
A: exim-users
Asunto: Re: [Exim] need help with a condition
Peter N Lewis wrote:
> 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!


Indeed *G*


I will think about it ;)

ciao