BOGOTUNE(1)
β¨ BOGOTUNE(1) β¨
okay bestie, gather round, because this is bogotune from the Bogofilter Reference Manual and it is literally here to find the optimum parameter settings for bogofilter π
π NAME π
bogotune β find optimum parameter settings for bogofilter π
π¦ SYNOPSIS π¦
bogotune [-v] [-c config] [-C] [-d dir] [-D] [-r value] [-T value]
-n okfile [[-n] okfile [...]] -s spamfile [[-s] spamfile [...]]
[-M file]
bogotune [-h]
πΈ DESCRIPTION πΈ
so basically bogotune is out here trying to find the optimum parameter settings for bogofilter. no cap. but here's the thing β it needs at least one set each of spam and non-spam messages. like, minimum. it can't do its little thing without both. π
normally it uses the production wordlist, but you can also point it at a different wordlist, or make it build its own from half the supplied messages. main character energy honestly.
now, to produce useful results, bogotune has minimum message count requirements and it is not subtle about them:
- the wordlist it uses must have at least 2,000 spam and 2,000 non-spam in it
- the message files must contain at least 500 spam and 500 non-spam messages
- also, the ratio of spam to non-spam should be in the range 0.2 to 5
and if you tell bogotune to build its own wordlist? it will use half the input or 2000 messages (whichever is larger) for the wordlist. slay. π
message files may be in mbox, maildir, or MH folder β or any combination of those, we love a flexible queen. msg-count files can also be used, but not mixed with other formats. do not test her. π«Ά
π OPTIONS π
-hβ prints the help message and then exits. bye bestie π-vβ increases the verbosity level. level 1 displays the scan output in detail instead of using a progress meter. so if you wanna see everything, this is your girl.-cfilename β tellsbogofilterto read the config file named. π-Cβ preventsbogotunefrom reading a configuration file. no config, no problem.-ddir β specifies the directory for the database. peek the ENVIRONMENT section for other directory setting options π-Dβ tellsbogotuneto build a wordlist in memory using the input messages. the messages get read and divided into two groups: the first group builds a wordlist (in ram) and the second is used for tuning. and because of the minimum requirements of 2000 messages in the wordlist and 500 messages for testing, when-Dis used there must be 2500 non-spam and 2500 spam in the input files. if there are enough messages (more than 4000), they'll be split evenly between wordlist and testing. otherwise they get split proportionately. math but make it fashion. β¨-nβ tellsbogotunethat the following argument is a file (or folder) containing non-spam. since version 1.0.3, multiple arguments to the-noption can be given. all non-option arguments until the next-soption will be treated as though they had been preceded by-nπ¦-sβ tellsbogotunethat the following argument is a file (or folder) containing spam. it can be repeated as often as necessary. since version 1.0.3, multiple arguments to the-scan be given. all non-option arguments until the next-noption will be treated as though they had been preceded by-sπ-rvalue β tellsbogotuneto use the following parameter as therobxvalue.-Tvalue β tellsbogotuneto use the following parameter asfptarget value.-Mfile β tellsbogotuneto convert the file to message count format. this format provides a sorted list of each message's unique tokens, along with their ham and spam counts. sorting hides the sense of the messages quite effectively, thus protecting privacy πβ¨. the message-count format allowsbogotuneandbogofilterto score messages quickly without needing the original token database.
π ENVIRONMENT π
bogofilter uses a database directory, which can be set in the config file. if it's not set there, bogofilter will use the value of BOGOFILTER_DIR. both of those can be overridden by the -ddir option. and if none of that is available? bogofilter will use the directory $HOME/.bogofilter. the backup plan has a backup plan, periodt. π
π BUGS π
bogotune is not particularly robust when presented with garbage input. so like... don't do that. she's doing her best. π
π AUTHOR π
the bogofilter developer team. π«Ά
for updates, see the bogofilter project page[1].
β SEE ALSO β
bogofilter(1), bogolexer(1), bogoupgrade(1), bogoutil(1)
π NOTES π
- the bogofilter project page
http://bogofilter.sourceforge.net/
okay that's the whole vibe check π this was the Bogofilter manual page, dated 05/19/2019, and yes it's giving iconic documentation energy. go tune those parameters, bestie, you got this π¦β¨π
π¦ 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
- centos-stream 9: bogofilter 1.2.5-8.el9 Β· GPLv2
- 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 1.2.5-19.el10_1 Β· GPL-2.0-only
- fedora 43: bogofilter 1.2.5-20.fc43 Β· GPL-2.0-only
- fedora 44: bogofilter 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