Re: [Exim] need help with a condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Peter N Lewis
Date:  
À: Nico Erfurth, Christian Frömmel, exim
Sujet: 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/>