New version, database incompatible -retrain again!
Masaru Nomiya
nomiya at lake.dti.ne.jp
Sun Feb 9 12:01:24 CET 2025
Hello,
In the Message;
Subject : New version, database incompatible -retrain again!
Message-ID : <20250209094909.5fe40664.adrian at aeolian.org.uk>
Date & Time: Sun, 9 Feb 2025 09:49:09 +0000
Adrian via bogofilter <bogofilter at bogofilter.org> has written:
> I use bogofilter with Claws Mail. When I install a new version of
> Claws and presumably bogofilter/Berkeley DB is upgraded as a result, the
> database (wordlist.db) becomes incompatible and I'm asked to start
> retraining from scratch.
> If I thought about it in advance, I could dump the wordlist to text and
> reload it into the new database, if that would work. If I don't
> remember, all I can do is keep a few thousand spams somewhere as a
> training corpus.
> Is there a simple solution?
I don't know if it's simple or not, but this is how I do it.
$ bogoutil -d wordlist.db | bogoutil -l wordlist.db.new
$ mv wordlist.db wordlist.db.prev
$ cp wordlist.db.new wordlist.db
Test
$ bogofilter --spam-cutoff 0.9 -k 10 -v < ~/var/Mail/inbox/10
X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.3.0.beta1
Best Regards & Good Night.
---
┏━━┓彡 Masaru Nomiya mail-to: nomiya @ lake.dti.ne.jp
┃\/彡
┗━━┛ "Microsoft is overhauling its cybersecurity strategy, called the
Secure Future Initiative, to incorporate key security features
into its core set of technology platforms and cloud services. "
-- Microsoft overhauls cyber strategy to finally embrace security by default --
More information about the bogofilter
mailing list