Re: [exim] Call to spamassasin conditionally

Top Page
Delete this message
Reply to this message
Author: Stanislaw Halik
Date:  
To: exim-users
Subject: Re: [exim] Call to spamassasin conditionally
On Fri, May 12, 2006, Christian Gregoire wrote:
> acl_check_data:
> warn message = X-Spam-Score-Reached: YES
> spam      = joe:true
> condition = ${if >{$spam_score_int}{140}{1}{0}}


> which adds the X-Spam-Score-Reached header whenever the score reaches 14.


> But is there a way to conditionally call Spamassassin ?


sure.

warn message   = X-Spam-Score-Reached: YES
     condition = ${if <{$message_size}{80k}}
     spam      = joe:true
     condition = ${if >{$spam_score_int}{140}}


-- sh