[bogofilter-announce] bogofilter-0.14.0 - New Current Release

Boris 'pi' Piwinger 3.14 at logic.univie.ac.at
Wed Jul 23 09:17:09 CEST 2003


David Relson wrote:

> * Updated contrib/bogominitrain.pl prints more info and can save
>    messages used in training.

I already described how to use it to find errors in your
training database.

Now you can also set safety margins for training which make
false classifications in productions less likely.

Any feedback is welcome.

If you want to use the combined wordlist, use the attached
patch (it does not hurt to use it anyways).

pi
-------------- next part --------------
--- bogominitrain.pl.bak	Wed Jul 23 07:10:32 2003
+++ bogominitrain.pl	Wed Jul 23 07:12:24 2003
@@ -67,7 +67,7 @@
 
 die ("$dir is not a directory or not accessible.\n") unless (-d $dir && -r $dir && -w $dir && -x $dir);
 print "\nStarting with this database:\n";
-my $dbexists=(-s "$dir/goodlist.db");
+my $dbexists=(-s "$dir/goodlist.db" || -s "$dir/wordlist.db");
 if ($dbexists) {print `bogoutil -w $dir .MSG_COUNT`;} else {print "  (empty)\n\n";}
 
 my ($fp,$fn);



More information about the bogofilter mailing list