[Spambayes] sb_imapfilter

vbargsten beer at freakmail.de
Thu Mar 22 14:12:04 CET 2007


hi,

i am using sb_imapfilter.py to train messages of imap mailboxes.
filtering is done via procmail and sb_filter.
but there's a problem when calling "sb_imapfilter.py -t". often it does
not work, especially when called the first time,
where 'first time' is not meant as the first time ever called for that
user, only the last time called was a day or so before.
when called the second time right after the first unseccessful call, it
seems to be always seccessful.
as i run it with cron, it should be reliable.

the filtering itself works vey good and i like spambayes, so i dont want
to use something else.
the imap server is a cyrus on the same machine with suse linux 9.3 x86_64.

here is what i do:

-------------------------------------------------------------------------------------
testuser at linux-server:~> sb_imapfilter.py -t
SpamBayes IMAP Filter Version 1.1a3 (August 2006).

Loading state from /home/testuser/.hammie.db database
/home/testuser/.hammie.db is an existing database, with 148 spam and 43 ham
Loading database /home/testuser/.hammie.db... Done.
Cannot connect to server localhost on port 143
If you are connecting to an SSL server, please ensure that you have the
'Use SSL' option enabled.
Account: localhost:143
testuser at linux-server:~> sb_imapfilter.py -t
SpamBayes IMAP Filter Version 1.1a3 (August 2006).

Loading state from /home/testuser/.hammie.db database
/home/testuser/.hammie.db is an existing database, with 148 spam and 43 ham
Loading database /home/testuser/.hammie.db... Done.
Account: localhost:143
Training
   Training ham folder INBOX
.........................................................................................................................................................................................................................................................................................**************************************************************
       62 trained.
   Training spam folder INBOX.spam
...........................................................................................................................................................................................................................................................................................................................................................................................................................................................************************************************************************************************************************************
       132 trained.
Persisting /home/testuser/.hammie.db state in database
Training took 18.3412 seconds, 194 messages were trained.
------------------------------------------------------------------------------------

here is my bayescustomize.ini:

[Categorization]
spam_cutoff:0.7
[Storage]
messageinfo_storage_file:/home/testuser/.spambayes.messageinfo.db
persistent_storage_file:/home/testuser/.hammie.db
[imap]
password:--secret--
server:localhost:143
username:testuser
ham_train_folders:INBOX
spam_train_folders:INBOX.spam
[globals]
verbose:True


thank you for hints
vbargsten




More information about the SpamBayes mailing list