Re: bf_compact ruined my wordlist.db
David Relson <[email protected]>
| Newsgroups | gmane.mail.bogofilter.general |
|---|---|
| Organization | Osage Software Systems, Inc. |
| Message-ID | <[email protected]> |
On Fri, 04 Jan 2008 14:21:53 +0100 Thomas Novin wrote: > Hello > > When I ran the bf_compact command as described in the FAQ it seems to > have totally ruined my database. > > $ dpkg -l | grep bogofilter > ii bogofilter 1.1.5-2ubuntu2 > a fast Bayesian spam filter (dummy package) > ii bogofilter-bdb 1.1.5-2ubuntu2 > a fast Bayesian spam filter (Berkeley DB) > ii bogofilter-common 1.1.5-2ubuntu2 > a fast Bayesian spam filter (common files) > $ ls -la .bogo* > -rw-r--r-- 1 mypc mypc 280 2008-01-04 13:35 .bogofilter.cf > > .bogofilter: > total 992 > drwxr-xr-x 2 mypc mypc 4096 2007-12-07 14:08 . > drwxr-xr-x 107 mypc mypc 4096 2008-01-04 13:35 .. > -rw-r--r-- 1 mypc mypc 1003520 2008-01-04 13:43 wordlist.db > $ bf_compact ~/.bogofilter wordlist.db > Can't open wordlist './wordlist.db' > $ ls -la .bogofilter > total 16 > drwxr-xr-x 2 mypc mypc 4096 2008-01-04 13:45 . > drwxr-xr-x 108 mypc mypc 4096 2008-01-04 13:45 .. > -rw-r--r-- 1 mypc mypc 8192 2008-01-04 13:45 wordlist.db > > Did some searching on the subject on the mailing list but couldn't > find anything, what's wrong? > > Rgds Hello Thomas, Sorry, but I don't recall previous reports of bf_compact nuking the wordlist as happened to you. Can the problem be reproduced or is it a one time occurrence? If the problem is repeatable, you can run bf_compact and trace its execution by adding " -x" at the end of its first line. 8192 is the size of a new (empty) database. One can demonstrate that via "bogoutil -l new.db < /dev/null && ls -l new.db", bf_compact saves the original directory, i.e. ~/.bogofilter as directory.old, i.e. ~/.bogofilter.old. Have you looked to see if you still have that directory? HTH, David _______________________________________________ Bogofilter mailing list [email protected] http://www.bogofilter.org/mailman/listinfo/bogofilter