Spamc Threshold
Status: Beta
Brought to you by:
perbu
Spamc *returns* the exit code indicating spam or no, but prints to
STDOUT the score. YAMPLE appears to use the score rather than
the exit code, meaning non-spam with a non-zero score are tagged
as spam.
A sample patch (that uses a hardcoded threshold, unfortunately) is
below:
--- yample-0.30/yample 2004-01-13 17:42:27.000000000 -0500
+++ yample-0.30.new/yample 2004-12-11 16:41:
04.520644376 -0500
@@ -589,7 +589,7 @@
sub spam {
my ($yample) = @_;
- return ( $yample->sa_status );
+ return ( $yample->sa_status > 5.0);
}
=item perl()
Logged In: YES
user_id=830487
I've written a slightly cleaner patch that actually uses the
exit code of spamc. I'll put it in the patches section.