Re: [Exim] need help with a condition

Top Page
Delete this message
Reply to this message
Author: Peter N Lewis
Date:  
To: Nico Erfurth, Christian Frömmel, exim
Subject: 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/>