I've written some primative scripting with some help from the list that compiles a list of the Rules used and scores they received, and adds it into messages in a new header:
X-Spama-Scores: This is for end users to be able to quickly see (on mail NOT tagged as spam) what scores were given for what rule. Hopefully this will help anyone wanting to adjust scoring for there situation. This technique requires procmail being used to run spamassassin. It works like this: Procmail passes a message to spamc. spamc does its thing and inserts the X-Spam* headers. The message is then passed to the script `scores' which grabs the Rule names from `X-Spam-Status: ...tests=....' and looks up the score for each rule. We already are shown a total but not the individual score per rule. `scores' then uses procmail to insert a new header, X-Spama-Scores:, that details which score was given for which rule, and the source file of the score. So user can see the individual scores and whether an overridden score is really getting overridden and etc. An example looks like: [...] X-Spam-Status: No, hits=-101.4 required=5.0 tests=SPAMA,BUGZILLA_BUG,NO_REAL_NAME version=2.21 X-Spam-Level: X-Spama-Scores: S:SPAMA:-100 D:BUGZILLA_BUG:-2.000 D:NO_REAL_NAME:0.632:T:-101.368 [...] S=Systems' specific score file D=Distribution default score file T=Total of scores. Another script `spama_list_scores' trawls the possible score source files and compiles a single file with all known scores, writing it to /etc/mail/spamassassin/spama_all_scores.tmp. That file is then used by `scores' (It needs to be run before using `scores' [ I run it from cron]) May seem like quite a lot of huffing and puffing, but I find it pretty handy to see if scores need adjustment. Anyone interested can look here http://home.jtan.com/~reader/spama/ for details and download files if desired. Please feel free to comment, but be warned it is barely tried out and is very amatuerish. Suggestions on the perl code are especially desired. _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk