Mike Galvez wrote:
Hello,
I have searched the archives, but I can't find an answer to why I
can't add headers such as "X-Spam-Score".
I'm using SpamAssassin 3.1.1, Sendmail and spamass-milter-0.3.0_1
My local.cf has:
add_header all Score _SCORE_
version=_VERSION_
add_header spam Flag _YESNOCAPS_
report_safe 2
lock_method flock
required_score 5.5
use_bayes 1
bayes_auto_learn 1
bayes_ignore_header X-Bogosity
bayes_ignore_header X-Spam-Flag
bayes_ignore_header X-Spam-Status
In the headers, I get:
X-Spam-Level: *********
X-Spam-Status: Yes, score=9.2 required=5.5 tests=AWL=-0.591,
DRUGS_ERECTILE=0.1,DRUGS_ERECTILE_OBFU=2.046,GAPPY_SUBJECT=1.625,
MANY_EXCLAMATIONS=0,PLING_PLING=0.461,SUBJECT_DRUG_GAP_C=2.88,
SUBJECT_FUZZY_VPILL=1.644,UPPERCASE_75_100=1.04 autolearn=no
version=3.1.1
X-Spam-Flag: YES
X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on
But no X-Spam-Score
Did you try it manually (spamassassin -t < message.eml)? if it works
manually, then you probably need to restart something for the change to
take effect.
I am pulling in user_pref rules from an sql database. Using debug,
I know it's checking the sql table and parsing rules. The only pref
in the sql table that affects the header is:
rewrite_header Subject [SPAM-_HITS_]-
I appreciate any help you can provide.
Thanks