Re: [Exim] need help with a condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Nico Erfurth
Date:  
À: exim-users
Sujet: 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