bogolearn

Kevin McKinley ronin2 at bellatlantic.net
Sat Apr 5 21:21:15 CEST 2003


I found this "bogolearn" script at O'Reilly. (I changed "GOOD" to "HAM"). I
offer it here for comment, suggested improvements, or whatever.

Kevin

#!/bin/sh

BOGOFILTER="/usr/bin/bogofilter";
HAMDIR="/path/to/ham";
SPAMDIR="/path/to/spam";

cd $SPAMDIR;
echo Spam:
for i in *;
do
   echo Processing Mail ID \#$i;
   bogofilter -s -v < $i ;
done;

cd $HAMDIR;
echo Ham:
for i in *;
do
   echo Processing Mail ID \#$i;
   bogofilter -n -v < $i ;
done;




More information about the Bogofilter mailing list