On Wed, 16 Oct 2002, Tim Provencio wrote:

> Is there a way to add the scores to the tests that were done?  For example,
> in the following it does report the number of hits the required and the test
> but is it possible to display the score of each test similar to as it does
> in the case of Spam?
> 
> X-Spam-Status: No, hits=-1.4 required=5.0
> tests=ACCOUNT_CLICK,EMAIL_ATTRIBUTION,IN_REP_TO,
>     KNOWN_MAILING_LIST,NO_REAL_NAME,QUOTED_EMAIL_TEXT,
> SPAM_PHRASE_03_05,USER_AGENT_PINE
> 
> Reason being; in the case of missed messages, it would be nice to see what
> tests are resulting in what scores.  I've looked thru the config options and
> don't see anything of the likes.  Is there some "secret" or undocumented
> directive I can turn on to accomplish this?

This might not be an option for you but I'm running SA from MIMEDefang.
In MD I have it not write the scores to an attachment (or text at the end
of the message).  Instead I have it write the score straight into the
headers.  The MD code I use is:

       if ($hits >= $req) {
         my $fixed_report = $report;
         $fixed_report =~ s/\n+\z//g;        # fixes for multiline header
         $fixed_report =~ s/\n/\n\t/g;       # to stop sendmail complaining
          if ($hits >= 10) {
           action_change_header("X-Spam-Score", "$score ($hits) $names");
           action_change_header("Subject", "***SPAM*** $Subject");
          }
         action_change_header("X-Spam-Score", "$score ($hits) $names");
         action_add_header("X-Spam-Report", "$fixed_report");
        } else {
         action_add_header("X-Spam-Score", "No, $hits ($stars)");
        }


Specifically the X-Spam-Report stuff.  The rest is a conditional changing
of the subject if the score is high enough.  I don't know if SA can do
this directly.  Like I said I'm using SA to give a score to my messages
and MD to make the message changes.

HTH
 Justin



-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to