[exim] if or if and example wrong?

Top Pagina
Delete this message
Reply to this message
Auteur: Ron White
Datum:  
Aan: Exim-users
Onderwerp: [exim] if or if and example wrong?
I'm having a fight with if and || if or and getting some really
interesting errors as I try to juggle around the braces:

each subcondition inside an "and{...}" condition must be in its own {}

condition name expected, but found "{ >={$spam_score" inside "and{...}"
condition

Looking at the docs;

http://exim.org/exim-html-4.50/doc/html/spec_11.html#IX870

Looking at the 'if' example shown:

${if or {{eq{$local_part}{spqr}}{eq{$domain}{testing.com}}}

seems to have unbalanced braces?????

I've been trying to get this to work:
If $spam_score_int >= $acl_m_spamscore AND $acl_m_spamscan == 2 then the
test should succeed.

For the best part of today I've been swapping braces around, moving
things, and I just can't clear this error and the docs are not really
helping me. They are well written, I just don't understand them clearly.

My background is in Perl - so I'm used to curly braces. Just why I'm
having such trouble with this I don't know. Can anyone see what I am
doing wrong?

So this is clear in my head:

and {{<cond1>}{<cond2>}...}
...
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 {}

It's got to be looking right at me????