Discussion:
[Spamprobe-users] Not Using Hashing
Curt Sampson
2007-03-08 03:53:39 UTC
Permalink
I've built spamprobe 1.4b on NetBSD 4 from pkgsrc; the only configuration
option set by the package is --enable-default-8bit.

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:

0.5000000 3317 2895 0x00000684 __COUNT__
0.3000000 2 0 0x00000684 I0xee54dc52
0.3000000 0 2 0x00000684 I0xe7ff8a3a
0.3000000 0 2 0x00000684 I0x34ffe520
0.3000000 0 1 0x00000684 I0x23aa989b
0.3000000 2 0 0x00000684 I0x792a6d33
0.3000000 0 1 0x00000684 I0xddff8f62
0.3000000 2 0 0x00000684 I0x56d52968
0.3000000 1 0 0x00000684 I0x97ffb2fd
0.3000000 0 1 0x00000684 I0xd6d4e86f

How do I fix this so I can go back to the words database I was using
with version 1.2?

cjs
--
Curt Sampson <***@cynic.net> +81 90 7737 2974
The power of accurate observation is commonly called cynicism
by those who have not got it. --George Bernard Shaw
David Lee
2007-03-08 03:56:50 UTC
Permalink
have you compiled in either pbl or bdb ?
( you need one or the other, I highly recommend pbl, in order to do word
databases)



----- Original Message -----
From: "Curt Sampson" <***@cynic.net>
To: <spamprobe-***@lists.sourceforge.net>
Sent: Wednesday, March 07, 2007 9:53 PM
Subject: [Spamprobe-users] Not Using Hashing
Post by Curt Sampson
I've built spamprobe 1.4b on NetBSD 4 from pkgsrc; the only configuration
option set by the package is --enable-default-8bit.
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
0.5000000 3317 2895 0x00000684 __COUNT__
0.3000000 2 0 0x00000684 I0xee54dc52
0.3000000 0 2 0x00000684 I0xe7ff8a3a
0.3000000 0 2 0x00000684 I0x34ffe520
0.3000000 0 1 0x00000684 I0x23aa989b
0.3000000 2 0 0x00000684 I0x792a6d33
0.3000000 0 1 0x00000684 I0xddff8f62
0.3000000 2 0 0x00000684 I0x56d52968
0.3000000 1 0 0x00000684 I0x97ffb2fd
0.3000000 0 1 0x00000684 I0xd6d4e86f
How do I fix this so I can go back to the words database I was using
with version 1.2?
cjs
--
The power of accurate observation is commonly called cynicism
by those who have not got it. --George Bernard Shaw
-------------------------------------------------------------------------
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
_______________________________________________
Spamprobe-users mailing list
https://lists.sourceforge.net/lists/listinfo/spamprobe-users
Curt Sampson
2007-03-08 04:48:12 UTC
Permalink
Post by David Lee
have you compiled in either pbl or bdb ?
Isn't bdb Berkeley DB, an oldish version of which comes with NetBSD? I
was using version 1.2 of the software on this system before, and it did
the word databases just fine. As well, I get no error message when I
specify bdb explicitly. Should I see one if it's not there, or will it
just silently switch to hash?

What are the advantages of pbl?

cjs
--
Curt Sampson <***@cynic.net> +81 90 7737 2974
The power of accurate observation is commonly called cynicism
by those who have not got it. --George Bernard Shaw
David A. Lee
2007-03-08 13:21:38 UTC
Permalink
My guess is that since you didn't compile with any DB's its using hash by
default and showing no errors.
( I would have thought it would complain but maybe that's a feature).

pbl advantage over bdb is that pbl doesnt crash all the time and get
corrupted databases and circular refrences and stuck locks.
Post by Curt Sampson
Post by David Lee
have you compiled in either pbl or bdb ?
Isn't bdb Berkeley DB, an oldish version of which comes with NetBSD? I
was using version 1.2 of the software on this system before, and it did
the word databases just fine. As well, I get no error message when I
specify bdb explicitly. Should I see one if it's not there, or will it
just silently switch to hash?
What are the advantages of pbl?
cjs
--
The power of accurate observation is commonly called cynicism
by those who have not got it. --George Bernard Shaw
-------------------------------------------------------------------------
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
_______________________________________________
Spamprobe-users mailing list
https://lists.sourceforge.net/lists/listinfo/spamprobe-users
Chris Ross
2007-03-08 15:36:04 UTC
Permalink
Post by Curt Sampson
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%
Post by Curt Sampson
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
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?
Post by Curt Sampson
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

Loading...