On Mon, 14 Oct 2002, Mike Schrauder wrote: > If I wanted to change the subject of spam to say *****SPAM=14.3***** instead of > *****SPAM***** site wide, is that possible? Is there a way to use the score as a >variable in a config file? > Where would I set up the way the subject gets altered by SA? TIA
What I did is somewhat different than what you're wanting. I'm currently calling SA from MIMEDefang. In MD I have it write the report and score to the headers. If the score is >= 10 I then alter the subject line with ***SPAM***. I also changed MD's default way it write the X-Spam-Score header so that the stars immediately follow X-Spam-Score:. That way LookOut can handle it. Specifically... if ($Features{"SpamAssassin"}) { if (-s "./INPUTMSG" < 100*1024) { # Only scan messages smaller than 100kB. Larger messages # are extremely unlikely to be spam, and SpamAssassin is # dreadfully slow on very large messages. my($hits, $req, $names, $report) = spam_assassin_check(); if ($hits >= $req) { my($score); if ($hits < 100) { $score = "*" x int($hits); } else { $score = "*" x 100; } 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 { } You didn't say you were or weren't using MD. I assume you aren't though. This might give you some ideas though. I assume that 10 and up is garunteed spam and label it as such. I let the users make up their own mind otherwise. Justin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk