[Exim] need help with a condition

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Christian Frömmel
Datum:  
To: exim-users
Betreff: [Exim] need help with a condition
Hello,

2 days ago I posted a config for a mail-mirroring-cluster. Now (the time I
test this config) the condition in one router always fails to expand.

I am not able to see where the error is (and I see $, { and } everwhere in
my office since I look at the conditions for 2h ;-).

I want to do:
  if (($message_age < 300) && (exists(/var/lock/MASTER))) ||
     ((!$h_X-delayed:) && !(exists(/var/lock/MASTER)))


with this condition.

condition = "${if or\
                       {\
                           ${if and\
                                 {\
                                        { < {$message_age}{300}}\
                                        {exists {/var/lock/MASTER}}\
                                 }\
                           }\
                       }\
                       {\
                           ${if and\
                                 {\
                                        {def:$h_X-delayed:{0}{1}}\
                                        {exists {/var/lock/MASTER}{0}{1}}\
                                 }\
                           }\
                       }\
                    }"


When I use the exim-test-mode for conditions it complains on BOTH
or-conditions (I tested them standalone):
"Failed: missing } at end of condition inside "and" group"

And I don't see where I should put this }

Thanks for any help,
Christian

--
Christian Froemmel - Systemadministration Mail/Webserver
WWW: http://www.medizin.fu-berlin.de/~froemmel
FU Berlin - Fachbereich Humanmedizin / Med. Inf.
Hindenburgdamm 30 / D-12200 Berlin (Germany)