Bogofilter initialization problems
Gyepi SAM
gyepi at praxis-sw.com
Wed Oct 30 02:44:28 CET 2002
On Tue, Oct 29, 2002 at 03:30:04PM -0800, Eric Mings wrote:
> I get the same invalid argument error when I try this method to create
> the database.
The attached should fix the problem. It works for me on OS X with db 4.1
-Gyepi
-------------- next part --------------
Index: datastore_db.c
===================================================================
RCS file: /cvsroot/bogofilter/bogofilter/datastore_db.c,v
retrieving revision 1.17
diff -B -u -b -r1.17 datastore_db.c
--- datastore_db.c 28 Oct 2002 15:11:04 -0000 1.17
+++ datastore_db.c 30 Oct 2002 01:36:51 -0000
@@ -87,7 +87,7 @@
}
else if
#if DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR > 0
- ((ret = handle->dbp->open(handle->dbp, NULL, db_file, NULL, DB_BTREE, opt_flags | DB_AUTO_COMMIT, 0664)) != 0)
+ ((ret = handle->dbp->open(handle->dbp, NULL, db_file, NULL, DB_BTREE, opt_flags, 0664)) != 0)
#else
((ret = handle->dbp->open (handle->dbp, db_file, NULL, DB_BTREE, opt_flags, 0664)) != 0)
#endif
More information about the Bogofilter
mailing list