[Mimedefang] SA Question
Chad Stalvey
cstalvey at hcsmail.com
Mon Oct 21 09:01:01 EDT 2002
Can someone please post the line that I need in my code to let SA's count be
added to the header.
Here is what I have. Do I need to move:
action_change_header("X-Spam-Score", "$hits ($score) $names");
if ($Features{"SpamAssassin"}) {
if (-s "./INPUTMSG" < 100*1024) {
my($hits, $req, $names, $report) = spam_assassin_check();
if ($hits >= $req) {
my($score);
if ($hits < 40) {
$score = "*" x int($hits);
} else {
$score = "*" x 40;
}
action_change_header("X-Spam-Score", "$hits ($score)
$names");
if ($hits > 12) {
$bounce = "yes";
# action_quarantine_entire_message();
action_bounce("Message seems to be spam, rejected");
}
# If you find the SA report useful, add it, I guess...
# action_add_part($entity, "text/plain", "-suggest",
# "$report\n",
# "SpamAssassinReport.txt", "inline");
}
}
}
}
Chad Stalvey
Systems Engineer
Hayes Computer Systems
www.hcs.net
850.297.0551 ext.136
Mobile 508.0485
More information about the MIMEDefang
mailing list