Re: [Exim] need help with a condition

Top Pagina
Delete this message
Reply to this message
Auteur: Peter N Lewis
Datum:  
Aan: Nico Erfurth, Christian Frömmel, exim
Onderwerp: 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/>