[Exim] problem with nested condition

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Andreas Gietl
Dátum:  
Címzett: exim-users
Tárgy: [Exim] problem with nested condition
hi folks,

i'm trying to set up a nested condition with an and but simply can't manage to
do it the right way. maybe one of you can push me into the right direction.
(i'm using exim-4.24).

this is the condition i use:

  condition =\
                ${if and\
                        {\
                                {!eq {$h_X-Relay:}\
                                {}\
                        }\
                        {\
                                {!eq \
                                        {${lookup mysql {insert into log SET
test='aaa'}}\
                                        {1}\
                                }\
                        }\
                        {yes}{no}\
        }


but everytime it gets used i get this error:

2003-10-31 15:06:09 1AFZuh-0004rq-WA failed to expand condition "${if and{{!eq
{$h_X-Relay:}{}}{{!eq {${lookup mysql {insert into log SET test='aaa'}}{1}}}
{yes}{no}}" for dnslookup router: condition name expected, but found "{!eq
{${lookup m"

any ideas?

thanx for your help..... sry if this question was asked several times, but i
could not find an answer in the archives and nothing really helpful in faq
and docs

andreas
--
e-admin internet gmbh
Andreas Gietl                                            tel +49 941 3810884
Ludwig-Thoma-Strasse 35                      fax +49 (0)1805/39160 - 29104
93051 Regensburg                                  mobil +49 171 6070008


PGP/GPG-Key unter http://www.e-admin.de/gpg.html