On Mon, Jan 10, 2005 at 04:15:18PM -0500, Clint Adams wrote:
> > in the bogofilter manpage (except for an extra "-l" for syslog output
> > and an explicit "-d ~/.bogofilter" to point to my directory).
> 
> What's the output of "bogoutil -p ~/.bogofilter .MSG_COUNT" ?

Thanks, this was a huge push into the right direction!

I had about 25 spam messages, but no ham messages at all, so
everything was flagged as unsure.  I now sort unsure mails to an extra
folder where I manually classify the messages as either ham or spam
(see below) and everything works.


I've always trained bogofilter "on the job" with the procmail receipt
from the manpage.  Since the current bogofilter versions use a
tristate (ham/spam/unsure), this receipt won't work if you start with
an emtpy word list: only spam is moved to an extra folder, so you
can't distinguish ham from unsure.

Perhaps the receipt in the manpage should be changed to this:

       # filter mail through bogofilter, tagging it as spam and
       # updating the wordlist

       :0fw
       | bogofilter -u -e -p

       # if bogofilter failed, return the mail to the queue, the MTA will
       # retry to deliver it later
       # 75 is the value for EX_TEMPFAIL in /usr/include/sysexits.h

       :0e
       { EXITCODE=75 HOST }

       # file the mail to unsure-bogofilter if it is neither ham or spam.

       :0:
       * ^X-Bogosity: Unsure, tests=bogofilter
       unsure-bogofilter

       # file the mail to spam-bogofilter if it's spam.

       :0:
       * ^X-Bogosity: Spam, tests=bogofilter
       spam-bogofilter


"With this receipt, you can train bogofilter starting with an empty
 wordlist.  Be sure to always keep your unsure-folder empty by marking
 the messages therein as either ham or spam.  If you do this,
 bogofilter will automatically learn and after some time, no messages
 should be marked as unsure any more."

Feel free to close this bug or, if you think it's appropriate, forward
my suggestion on the manpage to upstream (and perhaps lower the bug
importance).

Regards,
Christian
-- 
....Christian.Garbs.....................................http://www.cgarbs.de

Futurama - comming soon to an illegal DVD

Attachment: signature.asc
Description: Digital signature

Reply via email to