Re: [exim] if or if and example wrong?

Top Page
Delete this message
Reply to this message
Author: Todd Lyons
Date:  
To: exim.ml
CC: Exim-users
Subject: Re: [exim] if or if and example wrong?
On Wed, May 5, 2010 at 8:44 AM, Ron White <exim.ml@???> wrote:
>
> each subcondition inside an "and{...}" condition must be in its own {}
>


> and {>={$spam_score_int}{$acl_m_spamscore}} {eq {$acl_m_spamscan}{2}}
> ...
> condition = ${if and {>={$spam_score_int}{$acl_m_spamscore}} {eq
> {$acl_m_spamscan}{2}}}
>
> But that gives me:
>  temporarily rejected after DATA: failed to expand ACL string "${if and
> {>={$spam_score_int}{$acl_m_spamscore}} {eq {$acl_m_spamscan}{2}}}":
> each subcondition inside an "and{...}" condition must be in its own {}


(Untested) Try adding another layer of braces around the conditions
being passed to the and{} :

${if and {{>={$spam_score_int}{$acl_m_spamscore}} }
{{eq{$acl_m_spamscan}{2} }} }

Expanding it logically:
${if
    and{
           { >={$spam_score_int}{$acl_m_spamscore} }
         }
         {
           { eq{$acl_m_spamscan}{2} }
         }
 }


-- 
Regards...      Todd
I seek the truth...it is only persistence in self-delusion and
ignorance that does harm.  -- Marcus Aurealius