[Mimedefang] Adding bayes_score from Mail::SpamAssassin:EvalTests

Kelson Vibber kelson at speed.net
Tue Dec 16 13:18:25 EST 2003


At 10:00 AM 12/16/2003, Kelson Vibber wrote:
>A simple test would be something like
>($bayes_score) = ($names =~ /\bBAYES_([0-9][0-9])\b/);

Erg - forgot to account for the case where no Bayes rules are triggered.

if ($names =~ /\bBAYES_([0-9][0-9])\b/) {
         $bayes_score = $1;
         # Do stuff with the result;
}


Kelson Vibber
SpeedGate Communications <www.speed.net> 




More information about the MIMEDefang mailing list