error - Unknown option -2

David Relson relson at osagesoftware.com
Wed Nov 10 00:12:13 CET 2004


On Tue,  9 Nov 2004 11:58:47 -0500 (EST)
Brad McNeely wrote:

> 
> When I run this script:
> #!/bin/bash
> SPAMBOX="/home/bmcneely/evolution/local/Inbox/subfolders/spam/mbox"
> HAMBOX="/home/bmcneely/evolution/local/Inbox/mbox"
> 
> cat $SPAMBOX|bogofilter -M -s #this is spam
> # unhash this if you want it to relearn your inbox each time as well
> #cat $HAMBOX|bogofilter -M -n #this is spam
> 
> # -o 0.45 gives us a "tollerance rating"
> # change -3 to -2 if you only want a plain yes or no spam rating
> bogofilter -2 -o 0.45
> 
> ret=$?  # save the return value
> echo $ret >> /home/bmcneely/data/scripts/scanspam.log
> exit $ret
> 
> 
> I get this error on the line bogofilter -2 -o 0.45
> Unknown option -2.
> 
> Any help is greatly appreciated.
> 
> Regards,
> Brad

Brad,

Looks like you've been using the same script for quite a while, and
using an old version of bogofilter, as well!

The "-2" option was deprecated (compiled out by default) in version
0.16.0 on 1 Jan 2004.  The code was removed in version 0.17.0 (1 Feb
2004).

If you want two-state scoring, set ham_cutoff to 0 via config file, i.e.
"ham_cutoff=0.0", or bogofilter option, i.e. "--ham_cutoff=0.0".

HTH,

David



More information about the Bogofilter mailing list