> From: Chris A
> Sent: Tuesday, December 16, 2003 9:35 PM
>
> Is there a way to get a report or log of the test
> results hits that spamassasin finds. The idea is I
> want to better fine tune the values assigned to cretin
> tests. However it is hard to narrow down just which
> test are getting hits. Right now I have to look at
> each of the emails SA headers and try to extrapolate a
> good sampling. If there was a way to generate a log or
> report of each hit then it would really help to tune
> the scores to my email.

I've been doing something like this, running it against either
the ham or spam mailbox of your choosing, you can change the
fields you're looking for:

formail -s sh -c 'formail -c -X From: -X Subject: -X Date: -X
X-Spam-Status:' < mbox

where mbox is the collection of mail to be analyzed. For spam, if you're
using
SA default report_safe, where the spam is copied into a separate attachment,
it simplifies things to copy the headers you want to analyze up into the
containing mail header (see perldoc Mail::SpamAssassin::Conf for details):

# in local.cf
report_safe 1
report_safe_copy_headers Received X-Spam-Status

Here's the example output:

From: "Timmy Battle" <[EMAIL PROTECTED]>
Subject: Online Doctors approve Vicodin, Xanax, Valium    watergate
Date: Wed, 10 Dec 03 20:08:29 GMT
X-Spam-Status: Yes, hits=35.6 required=5.0 tests=AF_MEDICAMENTOS,BAYES_99,
DATE_IN_PAST_06_12,DATE_SPAMWARE_Y2K,FORGED_MUA_OIMO,
FORGED_OUTLOOK_TAGS,FROM_HAS_MIXED_NUMS,FROM_HAS_MIXED_NUMS3,
FVGT_combo_IMAGEONLY1,FVGT_u_ODD_PORT,HTML_60_70,HTML_IMAGE_ONLY_04,
HTML_MESSAGE,MIME_HTML_NO_CHARSET,MIME_HTML_ONLY,MIME_HTML_ONLY_MULTI,
MISSING_MIMEOLE,RAZOR2_CF_RANGE_51_100,RAZOR2_CHECK,RM_hx_from,
WEIRD_PORT,X_MSMAIL_PRIORITY_HIGH,X_PRIORITY_HIGH autolearn=spam
version=2.61

The X-spam-status data would need to be post processed.




-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to