Re: [exim] direct boolean values in AND failing

Top Page
Delete this message
Reply to this message
Author: Exim Mailing List
Date:  
To: exim-users
Subject: Re: [exim] direct boolean values in AND failing
On Wed, Aug 01, 2007 at 12:24:40PM -0500, Brian Blood wrote:

> set acl_c_pref_av_run     = 1
> set acl_m_msg_av_allowed  = true

>
> this:
>
>     condition = ${if and {{$acl_c_pref_av_run} 
> {$acl_m_msg_av_allowed}} {true}{false}}

>
> is giving me the following error:
>
> "${if and {{$acl_c_pref_av_run}{$acl_m_msg_av_allowed}} {true}
> {false}}": condition name expected, but found "$acl_c_pref_av_r"
> inside "and{...}" condition


Exim's expansion syntax is not a programming language. It's just
a set of string expansion operators.

A valid condition is required in any ${if construct, such as eq{}.

Certain condition= statements in ACL will accept values such as "true"
or "1" to indicate a positive value, but that is only after regular
string expansions have been performed on the value of the condition
statement.

--
Dean Brooks
dean@???