Re: [exim] spam ACL - changing score character - wishlist it…

Pàgina inicial
Delete this message
Reply to this message
Autor: John Horne
Data:  
A: Exim users
Assumpte: Re: [exim] spam ACL - changing score character - wishlist item?
On Wed, 2005-05-25 at 12:43 +0200, Bob Johannessen wrote:
> John Horne wrote:
> > I am using the following ACL statements to run SpamAssassin (SA):
> >
> >    warn    spam = nobody:true/defer_ok
> >                   message = X-Spam-Level: $spam_bar

> >
> > Could either the '+' character be made an '*' as SA uses, or can an
> > option be created for the 'spam' statement to say what character should
> > be used - if the latter then perhaps add it to the wishlist please?
>
> Untested:
>
> warn    spam = nobody:true/defer_ok
>          message = X-Spam-Level: ${tr{$spam_bar}{+}{*}}

>
> Uses ${tr to translate from + to * in $spam_bar
>

Yup, that works great :-) Much better than fiddling with the source!


Thanks,

John.

-- 
---------------------------------------------------------------
John Horne, University of Plymouth, UK  Tel: +44 (0)1752 233914
E-mail: John.Horne@???       Fax: +44 (0)1752 233839