On Sun, Apr 23, 2006 at 09:02:19AM -0400, Matt Kettler wrote: > 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.
That line was a wrap from a commented line I removed before I mailed this, but I missed it. spamassassin --lint did not spew any warnings. > > 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. I did this and the "X-Spam-Score" was listed, so something (maybe Milter) is not writing it, though Milter changes the Subject header... add_header all Score _SCORE_ is in local.cf, SQL mail_prefs, and base rules directory /usr/local/share/spamassassin/10_misc.cf I'm still looking, and thanks for the suggestions. -Mike > > 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. > -- Michael Galvez Outawhack.net www.outawhack.net 434-295-0593 [EMAIL PROTECTED] There was a young girl in Dakota Had a letter from Ickes; he wrote her: "In addition to gas We are rationing ass, And you've greatly exceeded your quota."