Re: [Exim] need help with a condition

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Nico Erfurth
Dátum:  
Címzett: exim-users
Tárgy: 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