Re: [Exim] need help with a condition

Pàgina inicial
Delete this message
Reply to this message
Autor: Nico Erfurth
Data:  
A: exim-users
Assumpte: 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