Changing from TXN to NON-TXN mode [was: Bogofilter-0.94.1 ... ]

David Relson relson at osagesoftware.com
Sat Apr 9 19:15:10 CEST 2005


On Sat, 09 Apr 2005 11:28:01 -0400
Tom Allison wrote:

> David Relson wrote:
> > On Sat, 09 Apr 2005 07:42:44 -0400
> > Tom Allison wrote:
> > 
> > 
> >>David Relson wrote:
> >>
> >>>Greetings,
> >>>
> >>>Bogofilter-0.94.1 probes to see if the wordlist is in a transaction or non-
> >>>transaction directory and also allows run-time mode specification (via
> >>>options --enable-transactions and --disable-transactions). See
> >>>RELEASE.NOTES and NEWS for further details.
> >>
> >>Sorry to sound stupid, but what do you do if you already have a 
> >>transactions database and would like to revert to a non-transactional 
> >>system?
> > 
> > 
> > Hi Tom,
> > 
> > Good question!  The probe_txn function attempts to "join" the Berkeley
> > DB environment.  When that fails and the bogofilter_dir doesn't contain
> > any log files, then bogofilter runs without transactions.
> > 
> > Just use bf_copy and you'll have a new directory without any
> > transaction related files.  I've successfully used the following
> > command sequence:
> > 
> > 
> >    bf_copy bogodir bogotmp
> >    mv bogodir bogodir.old
> >    mv bogotmp bogodir
> > 
> > HTH,
> > 
> > David
> > 
> 
> I upgraded to 0.94.4.
> I didn't do my txn to no_txn conversion quite like this.
> Rather I did:
> bogoutil -d .bogofiler/wordlist.db > bogofiler_wordlist
> cd .bogofilter
> rm *
> cd
> bogoutil -l .bogofilter/wordlist.dc < bogofilter_wordlist
> 
> Seems OK so far.
> 
> I then changed my .bogofilter.cf to include the line:
> 
> db_transactions=no
> 
> And I get complaints:
> procmail: Executing "bogofilter,-pe"
> Error - bad parameter 'db_transactions=no'
> procmail: No match on "^X-Bogosity: Spam"
> procmail: No match on "^X-Bogosity: Unsure"
> 
> 
> Just to be sure:
> tallison at cling:~$ bogofilter -V
> bogofilter version 0.94.4

Tom,

Do you have the bogofilter.cf (or bogofilter.cf.example) that shipped
with your package (or the tarball)?  It's the reference document :-)

Compare your spelling of the option to bogofilter.cf.example!!!


_______________________________________________
Bogofilter mailing list
Bogofilter at bogofilter.org
http://www.bogofilter.org/mailman/listinfo/bogofilter



More information about the Bogofilter mailing list