On Thu, 27 Sep 2007, Andrew Lewis wrote:
> Extract from paniclog:
>
> 2007-09-27 11:30:55 1Iapho-0000BN-T7 failed to expand condition "${if and { {def:h_X-Scan-Virus-Flag: } { match{True}{${lookup ldap {USER=${quote_ldapdn:cn = Directory Manager} PASS=${quote:aabbccdd} ldap:///o=$domain,o=mail?enableAntiVirus?sub?(mail=${quote_ldap:$local_part@$domain})}}}{1}{0} } } {yes}{no} }" for quarantine_virus router: missing } at end of condition inside "and" group
>
> Confused since all brackets seem balanced/in their correct place to me. :S
Let's reformat that:
${if and {
{def:h_X-Scan-Virus-Flag: }
{
match{True}
{${lookup ldap {USER=${quote_ldapdn:cn = Directory Manager}
PASS=${quote:aabbccdd}
ldap:///o=$domain,o=mail?enableAntiVirus?sub?
(mail=${quote_ldap:$local_part@$domain})
}
}
}
<==== Expect a } here to close the match condition, and another one
to close the and condition
... and then it goes all weird ... are the {1}{0} meant to be part
of the lookup? If so, they are in the wrong place.
{1}{0} } } {yes}{no} }
--
Philip Hazel University of Cambridge Computing Service
Get the Exim 4 book: http://www.uit.co.uk/exim-book