Autor: Peter Bowyer
Data:
Para: exim-users
Asunto: Re: [Exim] what's wrong with this condition?
Arkadiusz Miskiewicz said:
> failed to expand condition "${if and { ${if or { {match {$h_precedence:}
> {(?i)junk|bulk|list}} {eq {$sender_address} {}} {match {$h_subject
> :} {(ADV|Adv|SPAM)}} } {no}{yes} } { yes } } {yes}{no} }" for uservacation
> router: subcondition in {} expected inside "and{...}" condition
>
> subcondition in {} - everything here is in {} so not helpful message ;)
The syntax for 'and' is:
and {{<cond1>}{<cond2>}...}
in other words, each sub-condition should be enclosed in its own pair of
{}. Your first condition isn't.
Peter