[bogofilter] Training from scratch
Mark Constable
markc at renta.net
Mon Mar 7 14:30:42 CET 2005
David Relson wrote:
>>. xfilter "/usr/bin/bogofilter -u -e -p -d $HOME/.bogofilter"
>>. bogofilter -d${MPATH}.bogofilter -Ns < "$i"
>>. bogofilter -d${MPATH}.bogofilter -Sn < "$i"
> *** Also you can use "bogofilter -vvv <msg" to see the spam and ham
> counts and the spamicity scores for each token in the message. The "-
> vvv" output is described in the FAQ.
Thank you. These are FAQ answers but I wasn't sure which answers
to apply in this case. There is something screwy with the
initial input, just now I tracked another test message as before
and it arrived in the Unsure folder with the same result as before,
. Mar 7 23:01:40 mail bogofilter[3721]: X-Bogosity: Unsure, \
. spamicity=0.520000, version=0.93.5
however, when I recheck the actual message in that Unsure folder
immediately after it arrives I get...
# bogofilter -vv < long_courier_msg_name
X-Bogosity: Ham, tests=bogofilter, spamicity=0.107097, version=0.93.5
int cnt prob spamicity histogram
0.00 19 0.016756 0.013088 ###################
0.10 3 0.115524 0.027034 ###
0.20 0 0.000000 0.027034
0.30 0 0.000000 0.027034
0.40 0 0.000000 0.027034
0.50 0 0.000000 0.027034
0.60 0 0.000000 0.027034
0.70 0 0.000000 0.027034
0.80 0 0.000000 0.027034
0.90 3 0.996235 0.363943 ###
which is more like what I would expect. There is something screwy
about how I am initially feeding the message into bogfilter...
(see below)... here is the beginning of my maildroprc and the log
entry for the above message in case anyone can see an obvious booboo.
# head /etc/courier/maildroprc
logfile "/var/log/bogofilter.log"
log $HOME
xfilter "/usr/bin/bogofilter -l -u -e -p -c /etc/bogofilter.cf -d $HOME/.bogofilter"
if ((/^X-Bogosity: Spam/:h))
{
`test -d $HOME/Maildir/.Trash`
if ($RETURNCODE)
{
/^Subject: *!.*/:h
...
---------------------------------------
/home/cherry/
Date: Mon Mar 7 23:01:40 2005
From: Mark Constable <markc at renta.net>
Subj: More testing
File: /home/cherry//Maildir/.Suspect (1159)
--markc
_______________________________________________
Bogofilter mailing list
Bogofilter at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter
More information about the Bogofilter
mailing list