Re: [exim] Invalid header lines

Top Page
Delete this message
Reply to this message
Author: Stephen Gran
Date:  
To: exim-users
Subject: Re: [exim] Invalid header lines
On Sat, Sep 02, 2006 at 09:24:18AM +0200, Nikolaus Rath said:
> Hmm, but now I get different problems. With
>
>   warn    set acl_m0 = Yes ($spam_score points)
> >-------  spam    = nobody:true/defer_ok
> >-------  condition = ${if >={$spam_score_int}{50}{1}{0}}
>   warn    set acl_m0 = No ($spam_score points)
> >-------  spam    = nobody:true/defer_ok
> >-------  condition = ${if <{$spam_score_int}{50}{1}{0}}

>
> I get mails containing
>
> X-Spam-Status: No (8.8 points)
>
> How's that possible?


Because you're setting the acl variable before evaluating the condition.

Try:

warn    condition  = ${if >={$spam_score_int}{50}{1}{0}}
        spam       = nobody:true/defer_ok
        set acl_m0 = Yes ($spam_score points)


warn    condition  = ${if <{$spam_score_int}{50}{1}{0}}
        spam       = nobody:true/defer_ok
        set acl_m0 = No ($spam_score points)


instead. This is becoming something of a FAQ it seems. Perhaps
somebody should get around to putting it somehwere relatively prominent?
I could add it to the wiki, I suppose, but I'm not sure how many people
find it before posting here.
--
--------------------------------------------------------------------------
|  Stephen Gran                  | You may be marching to the beat of a    |
|  steve@???             | different drummer, but you're still in  |
|  http://www.lobefin.net/~steve | the parade.                             |

--------------------------------------------------------------------------