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
>   

Mike:

1) have you run spamassassin --lint?  I strongly suspect that
"version=_VERSION_" line is going to cause parse errors. You need
another add_header statement in front of it.

2) test by piping a text file of message into the plain "spamassassin"
script. You can use the sample-spam.txt that comes with the SA tarball
if you don't have any other complete messages laying about.

3) After you've linted and tested, then restart spamd. The changes won't
be picked up by any tools using spamd until spamd reloads.

Reply via email to