Re: New version, database incompatible -retrain again!
Masaru Nomiya <[email protected]> Sun, 09 Feb 2025 20:01:24 +0900
| Newsgroups | gmane.mail.bogofilter.general |
|---|---|
| Message-ID | <[email protected]> |
Hello, In the Message; Subject : New version, database incompatible -retrain again! Message-ID : <[email protected]> Date & Time: Sun, 9 Feb 2025 09:49:09 +0000 Adrian via bogofilter <[email protected]> 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 -- _______________________________________________ bogofilter mailing list [email protected] https://www.bogofilter.org/mailman/listinfo/bogofilter