Re: Not Using Hashing
Chris Ross <[email protected]> Thu, 8 Mar 2007 10:36:04 -0500
| Newsgroups | gmane.mail.spam.spamprobe.general |
|---|---|
| Message-ID | <[email protected]> |
On Mar 7, 2007, at 10:53 PM, Curt Sampson wrote:
> I've built spamprobe 1.4b on NetBSD 4 from pkgsrc; the only
> configuration
> option set by the package is --enable-default-8bit.
I'm running spamprobe on NetBSD 3+, and I've used it from both
pkgsrc and built-my-own when pkgsrc was behind... It seems to work
for me...
% spamprobe -V
SpamProbe v1.4c using BerkeleyDB-btree-cached database.
Copyright 2002-2006 Burton Computer Corporation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Q Public License for more details.
%
So, it looks like I built from source myself, most recently.
Lemme see what pkgsrc looks like...
(I've been running spamprobe for many years, starting before 1.2, and
always been using bdb. I like bdb, and know nothing about pbl.
Nothing against it, just not familiar with it myself...)
Okay, it looks like the pkgsrc options defines "gif" by default,
and "bdb" is an available option to the pkgsrc build system So, I
built spamprobe 1.4b from pkgsrc with:
make PKG_OPTIONS.spamprobe="gif bdb"
You could of course set PKG_OPTIONS.spamprobe in your /etc/
mk.conf, as it sortof the typical way to do that.
After building that binary (which I didn't install, but) it shows:
% ./work/spamprobe-1.4b/src/spamprobe/spamprobe -V
SpamProbe v1.4b using BerkeleyDB-btree-cached database.
Copyright 2002-2006 Burton Computer Corporation
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Q Public License for more details.
%
And:
./work/spamprobe-1.4b/src/spamprobe/spamprobe dump | head
0.1752449 23661 13365 0x00000685 $
0.2458892 2470 2141 0x00000685 $ $
0.3000000 0 1 0x00000632 $ $$$f
0.3000000 0 3 0x00000635 $ $$9
0.3000000 0 3 0x00000625 $ $+$7$f%
0.3000000 0 1 0x00000685 $ $+$i
0.9984516 0 5 0x00000611 $ $-$i$a$f
0.0018915 397 2 0x00000684 $ $1
0.3000000 0 1 0x000005d8 $ $1$g$bga$$$f
0.3000000 1 0 0x000005e1 $ $1,929
caught signal 13: quitting
harmony%
> However, no matter what I do, I seem to get a hash database rather
> than
> a word database. It doesn't seem to matter whether I use the default
> options or use -d bdb:$HOME/.spamprobe or similar, dump always
> shows me:
Is the database you were previously using a bdb database? Maybe
you should try using some of the db4_ tools? db4_verify, db4_stat,
see if you can get some information about the sp_words database.
Mine is:
/home/cross/.spamprobe/sp_words: Berkeley DB (Btree, version 9,
native byte-order)
Yours?
> How do I fix this so I can go back to the words database I was using
> with version 1.2?
As mentioned above, the first question is what *were* you using
with 1.2? :-)
- Chris
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV