BOGOUPGRADE(1)
β¨ BOGOUPGRADE π
okay so bestie, welcome to bogoupgrade β it's a Bogofilter Reference Manual page and it's literally the glow-up tool for your bogofilter database. it takes your crusty old-format database and makes it the current format, no cap. π
πΈ SYNOPSIS πΈ
bogoupgrade [-h] -d directory [-i input file] [-o output file]
[-b path to bogoutil]
that's it, that's the whole vibe check. π¦
β¨ DESCRIPTION β¨
so bogoupgrade is a command that upgrades bogofilter's databases from an old format to the current format. and the reason this exists at all is that the database format changes once in a while (iconic of it honestly), so this utility was designed to make that upgrade easy. it's giving convenience. π«Ά
π OPTIONS π
-hβ prints the help message and then dips. that's it, that's the whole job. βοΈ-dβ specifies the directory with the wordlists for converting. you use this one when you're converting from multiple, separate wordlists (spamlist.dbandgoodlist.dbβ which contain spam and ham tokens, respectively) over to a combined wordlist (wordlist.db) which holds both spam and ham tokens. glow-up from two to one. π-iβ specifies the input file to be converted. it should be a text file containing message counts, and possibly data. and listen: if there's no data in the text file, there should be a Berkeley DB file in the same directory as the text file that contains the data. so like, the data has to live somewhere, bestie. π-oβ specifies the output Berkeley DB file. this is where the new-and-improved you goes. π-bβ gives the path to thebogoutilcommand. it defaults to'bogoutil', in the hopes that your shell will find it. manifesting that your$PATHhas your back. π
π UPGRADING π
follow these instructions to upgrade bogofilter's databases to the latest version. we're doing a full makeover, step by step. β¨
- Stop all instances of bogofilter. okay so even though the upgrade tools lock the database files, the upgrade may take a long time if you have a busy site. and do not forget to stop cron jobs or daemons that fetch and process mail and could fire off bogofilter. like, actually stop them. no cap. π
- Backup your data. let's assume that you said:
$ mv ~/.bogofilter ~/.bogofilter.safe
$ mkdir ~/.bogofilter
the way that you just protected your whole archive... iconic. π«Ά
- If your bogofilter version is less than 0.7, say:
$ bogoupgrade -i ~/.bogofilter.safe/goodlist -o ~/.bogofilter/goodlist.db
$ bogoupgrade -i ~/.bogofilter.safe/badlist -o ~/.bogofilter/spamlist.db
If your bogofilter version is 0.7 or greater, say:
$ bogoupgrade -i ~/.bogofilter.safe/hamlist.count -o ~/.bogofilter/goodlist.db
$ bogoupgrade -i ~/.bogofilter.safe/spamlist.count -o ~/.bogofilter/spamlist.db
pick the right pair for your version, don't mix them up bestie. π
- Current versions of bogofilter use a combined wordlist that holds both spam and non-spam tokens. it is named
wordlist.db. if you're updating from a version older than 0.14.0 that has separate wordlists (namedgoodlist.dbandspamlist.db), use:
$ bogoupgrade -d ~/.bogofilter.safe
one command, one combined list. that's the main character energy. π
- Done. restart any stopped daemons, cron tasks, etc. you ate. π
π AUTHOR π
bogoupgrade was written by Gyepi Sam <gyepi@praxis-sw.com> and David Relson <relson@osagesoftware.com>. absolute legends, fr fr. π«Ά
for updates, see the bogofilter project page[1]. β
π¦ SEE ALSO π¦
go read those too, they're all part of the same friend group. π
π NOTES π
- the bogofilter project page
http://bogofilter.sourceforge.net/
Bogofilter Β· 05/19/2019 Β· and that's the whole page bestie, mwah πβ¨πΈ
π¦ where this page comes from
- alpine 3.24: bogofilter-doc 1.2.5-r4 Β· GPL-2.0-or-later
- arch rolling: bogofilter-db 1.2.5-12 Β· GPL-2.0-or-later
- arch rolling: bogofilter-kyotocabinet 1.2.5-12 Β· GPL-2.0-or-later
- arch rolling: bogofilter-lmdb 1.2.5-12 Β· GPL-2.0-or-later
- arch rolling: bogofilter-sqlite 1.2.5-12 Β· GPL-2.0-or-later
- debian bookworm: bogofilter-common 1.2.5-1+b2 Β· GPL-2.0-or-later
- debian trixie: bogofilter-common 1.2.5-1+b4 Β· GPL-2.0-or-later
- epel 10: bogofilter-bogoupgrade 1.2.5-19.el10_1 Β· GPL-2.0-only
- fedora 43: bogofilter-bogoupgrade 1.2.5-20.fc43 Β· GPL-2.0-only
- fedora 44: bogofilter-bogoupgrade 1.2.5-22.fc44 Β· GPL-2.0-only
- nixos 26.05: bogofilter-db 1.2.5
- nixos 26.05: bogofilter-sqlite 1.2.5
- nixpkgs unstable: bogofilter-db 1.2.5
- nixpkgs unstable: bogofilter-sqlite 1.2.5
- ubuntu jammy: bogofilter-common 1.2.5-1build2 Β· GPL-2.0-or-later
- ubuntu noble: bogofilter-common 1.2.5-1build4 Β· GPL-2.0-or-later
- ubuntu questing: bogofilter-common 1.2.5-1build5
- ubuntu resolute: bogofilter-common 1.2.5-1build6 Β· GPL-2.0-or-later
- ubuntu stonking: bogofilter-common 1.2.5-1build6 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms