Re: [Exim] Maybe another subcondition syntax error

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Oliver Egginger
CC: exim-users
Subject: Re: [Exim] Maybe another subcondition syntax error
On 7 May 2003, Oliver Egginger wrote:

> condition = \
> "${if and { {!def:h_X-Spam-Flag:} \


"and" is followed by { and then a number of {} conditions. You have the
first one here. So far so good.

>             {!eq {$received_protocol}{spam-scanned}} \


And there's a second condition. Still goodl

>             {${if or { {eq {$sender_host_address}{212.201.18.80}} \
>                        {eq {$sender_host_address}{212.201.18.81}} \


There's your problem. That is no longer a condition. "${if" is not the
name of a condition. However "or" is the name of a condition - its
arguments are a list of conditions inside {}. You want something like

${if {  {Acond1}
        {Acond2}
        {                     |   All of this is the third condition
        or {  {Ocond1}        |   for the "and"
              {Ocond2}        |
           }                  |
        }                     |
     }
  ...


(I haven't bothered with the \ continuations, or completed the whole
thing.

> What is a "condition name"?


One of the things that may follow "${if", such as "eq", "and", or "or".


--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.