Formatting of SA score in Subject?

MI mi.lists at alma.ch
Tue Nov 29 15:24:15 CET 2016


Has anyone found a solution for this?

I have tried various combinations of "$sa_spam_subject_tag" in 
/etc/amavis/conf.d/..., and "rewrite_header Subject" in /etc/spamassassin/local.cf, 
but nothing works (I have restarted amavis between the tests):

All these do not rewrite the subject at all:

     # grep -r SCORE /etc/spamassassin/ /etc/amavis/
     /etc/spamassassin/local.cf:rewrite_header Subject [SPAM-t1 _SCORE( )_]:
     /etc/amavis/conf.d/50-user:$sa_spam_subject_tag = undef; #'[SPAM _SCORE_] ';

     # grep -r SCORE /etc/spamassassin/ /etc/amavis/
     /etc/spamassassin/local.cf:rewrite_header subject [SPAM-t2 _SCORE( )_]:
     /etc/amavis/conf.d/50-user:$sa_spam_subject_tag = undef; #'[SPAM _SCORE_] ';

     # grep -r SCORE /etc/spamassassin/ /etc/amavis/
     /etc/spamassassin/local.cf:rewrite_header subject [SPAM-t3 _SCORE( )_]:
     /etc/amavis/conf.d/50-user:$sa_spam_subject_tag = ''; #'[SPAM _SCORE_] ';

     # grep -r SCORE /etc/spamassassin/ /etc/amavis/
     /etc/spamassassin/local.cf:rewrite_header subject [SPAM-t4 _SCORE(0)_]:
     /etc/amavis/conf.d/50-user:$sa_spam_subject_tag = undef; #'[SPAM _SCORE_] ';

And this one rewrites the subject literally with "[SPAM _SCORE(0)_] ...", as Jeff 
already said:

     # grep -r SCORE /etc/spamassassin/ /etc/amavis/
     /etc/spamassassin/local.cf:rewrite_header subject [SPAM-t5 _SCORE(0)_]:
     /etc/amavis/conf.d/50-user:$sa_spam_subject_tag = '[SPAM _SCORE(0)_] ';


Has anyone got this score formatting working with Amavis?




More information about the amavis-users mailing list