Re: [Exim] Maybe another subcondition syntax error

Góra strony
Delete this message
Reply to this message
Autor: Oliver Egginger
Data:  
Dla: ODHIAMBO Washington
CC: exim-users
Temat: Re: [Exim] Maybe another subcondition syntax error
> I believe that means your condition = line is not good ;)

Yes. But where is the syntactical failure?
Meanwhile I found another (better) solution for my problem,
so I don't need a nested if statement at the moment.

But in general I would like to know, how I could use nested
if statements with Exim.
Is there maybe a working example ?

-oliver


Am Mit, 2003-05-07 um 13.37 schrieb ODHIAMBO Washington:
> * Oliver Egginger <Oliver.Egginger@???> [20030507 13:14]: wrote:
> > Helo,
> >
> > I have defined the following condition in one of my routers (Exim 4.12):
> >
> > condition = \
> > "${if and { {!def:h_X-Spam-Flag:} \
> >             {!eq {$received_protocol}{spam-scanned}} \
> >             {${if or { {eq {$sender_host_address}{212.201.18.80}} \
> >                        {eq {$sender_host_address}{212.201.18.81}} \
> >                      } \
> >           } {1}{0}} \
> >    {1}{0} } \
> >   }"

> >
> >
> > But Exim skip this router, giving me the error message:
> >
> > failed to expand condition "${if and { {!def:h_X-Spam-Flag:} {!eq
> > {$received_protocol}{spam-scanned}} {${if or { {eq
> > {$sender_host_address}{212.201.18.80}} {eq
> > {$sender_host_address}{212.201.18.81}} } } {1}{0}} {1}{0} } }" for
> > spamcheck_router router: condition name expected,
> > but found "${if or { {eq {$"
> >
> > I can't see my failure.
> > Could you help me please?
> >
> > What is a "condition name"?
> >
> > -oliver
>
>
>
> I believe that means your condition = line is not good ;)
>
> If you test that with `exim -be`
>
> wash@ns2 ('tty') ~ 3 -> exim -be
> > ${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}}{${if or { {eq
> {$sender_host_address}{212.201.18.80}}{eq {$sender_host_address}{212.201.18.81}}}} {1}{0}} {1}{0} }}
> Failed: condition name expected, but found "${if or { {eq {$"
> >
>
>
>
>
> -Wash

--
Oliver Egginger <Oliver.Egginger@???>
Fachochschule Giessen-Friedberg