Marc Sherman wrote:

>Once the spam condition has been run, you don't need to re-run it in 
>subsequent acl stanzas -- the variables are already set by the first 
>run. So you can do this:
>
>   warn  message = X-Spam-Flag: YES
>       condition = ${if < {$message_size}{500K}}
>         spam = nobody
>
>   warn  message = X-Spam-Q: 1
>       condition = ${if def:spam_score_int}
>         condition = ${if >= {$spam_score_int}{50}{1}{0}}
>         condition = ${if < {$spam_score_int}{100}{1}{0}}
>
>   warn  message = X-Spam-Q: 2
>       condition = ${if def:spam_score_int}
>         condition = ${if >= {$spam_score_int}{100}{1}{0}}
>         condition = ${if < {$spam_score_int}{150}{1}{0}}
>
>This has the added benefit of not re-running spamassassin for each 
>stanza when spamassassin fails (due to a pathalogical message) if you 
>decide to use defer_ok.
>
>...
>
>- Marc
>  
>

This is exactly what I'm looking for. Thank you very much!


Regards,
Andreas



-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to