registering spammails

Eric Persson eric at persson.tm
Tue Feb 4 17:06:30 CET 2003


Hi David,

Thanks for your fast reply. Actually I didnt run make check at 
installtime, must have forgotten it. :) Well, this is the output from 
the end of it:
<snip>
PASS: t.env
PASS: t.ignore_spam_header
PASS: t.integrity
PASS: t.integrity2
PASS: t.lexer
PASS: t.lock1
PASS: t.lock2
PASS: t.nullstatsprefix
PASS: t.score1
PASS: t.score2
===================
All 10 tests passed
===================
make[3]: Leaving directory `/home/eric/bogofilter-0.10.2/tests'
make[2]: Leaving directory `/home/eric/bogofilter-0.10.2/tests'
Making check in bogoutil
make[2]: Entering directory `/home/eric/bogofilter-0.10.2/tests/bogoutil'
make  check-TESTS
make[3]: Entering directory `/home/eric/bogofilter-0.10.2/tests/bogoutil'
Running test 1
Running test 2
Running test 3
Found a message count of [4] in db. Throwing away text file count of [1]
Running test 4
This database appears to have been upgraded already.
But there's no harm in doing it again.
PASS: driver.sh
PASS: t.dump.load
==================
All 2 tests passed
==================
make[3]: Leaving directory `/home/eric/bogofilter-0.10.2/tests/bogoutil'
make[2]: Leaving directory `/home/eric/bogofilter-0.10.2/tests/bogoutil'
Making check in bogofilter
make[2]: Entering directory `/home/eric/bogofilter-0.10.2/tests/bogofilter'
make  check-TESTS
make[3]: Entering directory `/home/eric/bogofilter-0.10.2/tests/bogofilter'
PASS: t.lexer.mbx
PASS: t.robx
SKIP: t.valgrind
PASS: t.split
PASS: t.systest
PASS: t.grftest
======================
All 5 tests passed
(1 tests were not run)
======================
make[3]: Leaving directory `/home/eric/bogofilter-0.10.2/tests/bogofilter'
make[2]: Leaving directory `/home/eric/bogofilter-0.10.2/tests/bogofilter'
make[1]: Leaving directory `/home/eric/bogofilter-0.10.2/tests'
Making check in doc
make[1]: Entering directory `/home/eric/bogofilter-0.10.2/doc'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/eric/bogofilter-0.10.2/doc'
Making check in contrib
make[1]: Entering directory `/home/eric/bogofilter-0.10.2/contrib'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/eric/bogofilter-0.10.2/contrib'

I assume I dont need another make install after the make check, since it 
doesnt seem to change anything, just some testing.


I tried adding the parameters you mentioned when registering a spam mail 
and got the following:
[root at localhost eric]# cat 
spam_mail|/usr/local/bogofilter/bin/bogofilter -x d -vv -C -s -d 
/home/eric/.bogofilter/
db_open( good, /home/eric/.bogofilter/goodlist.db, 1 )
db_open( spam, /home/eric/.bogofilter/spamlist.db, 1 )
# 206 words, 1 message
bogofilter: 1 messages on the spam list
db_close(good, /home/eric/.bogofilter/goodlist.db, false)
db_close(spam, /home/eric/.bogofilter/spamlist.db, false)
[root at localhost eric]# ls -l .bogofilter/
total 24
-rw-------    1 eric     eric        16384 Feb  4 16:45 goodlist.db
-rw-------    1 eric     eric         8192 Feb  4 16:45 spamlist.db
[root at localhost eric]#              ^^^^^^^^ - still seems empty


And when registering a "good" mail i get the following:
[root at localhost eric]# cat 
Maildir/cur/1044373323.3271_0.localhost.localdomain,S\=4156\:2, 
|/usr/local/bogofilter/bin/bogofilter -x d -vv -C -n -d 
/home/eric/.bogofilter/
db_open( good, /home/eric/.bogofilter/goodlist.db, 1 )
db_open( spam, /home/eric/.bogofilter/spamlist.db, 1 )
# 363 words, 1 message
bogofilter: 1 messages on the good list
db_close(good, /home/eric/.bogofilter/goodlist.db, false)
db_close(spam, /home/eric/.bogofilter/spamlist.db, false)
[root at localhost eric]# ls -l .bogofilter/
total 24
-rw-r--r--    1 root     root        16384 Feb  4 16:52 goodlist.db
-rw-r--r--    1 root     root         8192 Feb  4 16:52 spamlist.db
[root at localhost eric]#


The version is the tarball from sourceforge downloaded today, its the 
0.10.2 version.

I dont know if there is something I've done wrong, but it doesnt seem 
like it.

I placed the spammail I used above on the following url for your 
reference http://www.egp.cx/test_spam_mail.txt
And the good mail, was your reply to my question on the list.

Thanks for your help,
    Eric




David Relson wrote:
> Hi Eric,
> 
> Welcome to the mailing list.  What you're doing looks fine.  Now it's 
> question time ...
> 
> It looks like you've built bogofilter from the source code.  Have you 
> run "make check"?  Did all the tests pass?
> 
> What version of bogofilter do you have?  We've not seen that problem in 
> any version of bogofilter.  I just tried to reproduce your problem with 
> 0.10.2, the current stable release, and didn't encounter your problem.
> 
> As an experiment, include flags "-x d -vv" in your command line to turn 
> on some debugging information.  Here's some of my (correct) output using 
> the spam and good mailboxes in directory tests/bogofilter/inputs:
> 
> Below is some annotated output from my test.  Feel free to duplicate 
> what I've done and send the output to the list.
> 
> David
> 
> 
> ## first remove any old wordlists
> [relson at osage src]$ rm -f *.db
> 
> ## then test "-n" to load into goodlist.db
> 
> [relson at osage src]$ cat tests/bogofilter/inputs/good.mbx | bogofilter -x 
> d -vv -C -n -d . ; ls -l *.db
> db_open( good, ./goodlist.db, 1 )
> db_open( spam, ./spamlist.db, 1 )
> # 13490 words, 48 messages
> bogofilter: 48 messages on the good list
>                                ^^^^
>                                correct - loading into good list
> db_close(good, ./goodlist.db, false)
> db_close(spam, ./spamlist.db, false)
> -rw-r--r--    1 relson   relson     135168 Feb  4 10:41 goodlist.db
> -rw-r--r--    1 relson   relson       8192 Feb  4 10:41 spamlist.db
>                                     ^^^^^^ data is in goodlist.db
> 
> ## remove db from previous test
> [relson at osage src]$ rm -f *.db
> 
> ## then test "-s" to load into spamlist.db
> [relson at osage src]$ cat tests/bogofilter/inputs/spam.mbx | bogofilter -x 
> d -vv -C -s -d . ; ls -l *.db
> db_open( good, ./goodlist.db, 1 )
> db_open( spam, ./spamlist.db, 1 )
> # 5869 words, 21 messages
> bogofilter: 21 messages on the spam list
>                                ^^^^
>                                correct - loading into spam listlist
> db_close(good, ./goodlist.db, false)
> db_close(spam, ./spamlist.db, false)
> -rw-r--r--    1 relson   relson     135168 Feb  4 10:42 goodlist.db
> -rw-r--r--    1 relson   relson      53248 Feb  4 10:42 spamlist.db
>                                     ^^^^^^ data is in spamlist.db
> 






More information about the Bogofilter mailing list