0.95.2.cvs compilation succeeded on IRIX 6.5
David Relson
relson at osagesoftware.com
Sun Aug 7 15:26:21 CEST 2005
On Sun, 7 Aug 2005 21:02:03 +0900
Daichi Kawahata wrote:
...[snip]...
> I've added my test log with both sh and bash versions, seemed DB had
> problems.
I do believe you're correct about DB having problems. Seeing:
Can't open wordlist 'test.0806.d/wordlist.db'
in your output indicates that Berkeley DB isn't creating a database!!
Also, there should be output from the "echo ... |bogofilter -n -v"
command indicating how many tokens were registered.
Did you build Berkeley DB yourself or use an already built package? If
"build it yourself", an easier DB to build and use might be SQLite3.
Script test.0807.sh uses additional options to print information about
database options. Once you have a working database, give it a try.
HTH,
David
-------------- next part --------------
[relson at osage src]$ test.0807.sh
+ bogofilter -V -Q
bogofilter version 0.95.2
Database: Sleepycat Software: Berkeley DB 4.2.52: (September 16, 2004) AUTO-XA
Copyright (C) 2002-2005 Eric S. Raymond,
David Relson, Matthias Andree, Greg Louis
bogofilter comes with ABSOLUTELY NO WARRANTY. This is free software, and
you are welcome to redistribute it under the General Public License. See
the COPYING file with the source distribution for details.
+ DIR=test.0807.d
+ '[' -d test.0807.d ']'
+ mkdir test.0807.d
+ echo Make sure test.0807.d exists
Make sure test.0807.d exists
+ ls -ld test.0807.d
drwxr-xr-x 2 relson relson 4096 Aug 7 09:16 test.0807.d
+ OPTS='-x dw -vv'
+ echo this message is a ham message
+ bogofilter -x dw -vv -n -d test.0807.d
probing "test.0807.d" and "wordlist.db" for environment...T_DONT_KNOW
db_version: Header version 4.2, library version 4.2
[pid 8494] DB->open(db=0x8087670, file=test.0807.d/wordlist.db, database=NIL, type=1, flags=0=, mode=0664) -> 2 No such file or directory
[pid 8494] DB->set_flags(db=0x8087670, flags=0x1=DB_CHKSUM ) -> 0 Successful return: 0
[pid 8494] DB->open(db=0x8087670, file=test.0807.d/wordlist.db, database=NIL, type=1, flags=0x1001=DB_CREATE DB_EXCL , mode=0664) -> 0 Successful return: 0
DB->get_byteswapped: false
DB->fd: 3
DB->stat success, pagesize: 4096
# 3 words, 1 message
DB->close(test.0807.d/wordlist.db, 0)
+ ls -l test.0807.d
total 8
-rw-r--r-- 1 relson relson 8192 Aug 7 09:16 wordlist.db
+ echo this message is spam
+ bogofilter -x dw -vv -s -d test.0807.d
probing "test.0807.d" and "wordlist.db" for environment...T_DISABLED
db_version: Header version 4.2, library version 4.2
[pid 8497] DB->open(db=0x8087670, file=test.0807.d/wordlist.db, database=NIL, type=1, flags=0=, mode=0664) -> 0 Successful return: 0
DB->get_byteswapped: false
DB->fd: 3
DB->stat success, pagesize: 4096
# 3 words, 1 message
DB->close(test.0807.d/wordlist.db, 0)
+ echo score this ham/spam message
+ bogofilter -d -vvv test.0807.d
Extra arguments given, first: test.0807.d. Aborting.
+ bogoutil -x dw -vv -d test.0807.d/wordlist.db
probing "test.0807.d" and "wordlist.db" for environment...T_DISABLED
db_version: Header version 4.2, library version 4.2
[pid 8500] DB->open(db=0x80744c8, file=test.0807.d/wordlist.db, database=NIL, type=1, flags=0x10=DB_RDONLY , mode=0664) -> 0 Successful return: 0
DB->get_byteswapped: false
DB->fd: 3
DB->stat success, pagesize: 4096
.ENCODING 2 0 20050807
.MSG_COUNT 1 1 20050807
.WORDLIST_VERSION 20040500 0 20050807
head:ham 0 1 20050807
head:message 1 1 20050807
head:spam 1 0 20050807
head:this 1 1 20050807
DB->close(test.0807.d/wordlist.db, 0)
7 tokens dumped
More information about the bogofilter
mailing list