BOGOUTIL(1)
π BOGOUTIL(1) β like, the whole manual, bestie π«Ά
okay so this is the manual page for bogoutil, straight out of the Bogofilter Reference Manual β and yes she's giving main character energy, because she literally dumps, loads, and maintains bogofilter database files. no cap. π
β¨ NAME β¨
bogoutil β dumps, loads, and maintains bogofilter database files. that's her whole job description and she ate. πββοΈ
πΈ SYNOPSIS πΈ
bogoutil {-h | -V}
bogoutil [options] {-d file | -H file | -l file | -m file | -w file |
-p file}
bogoutil {-r file | -R file}
bogoutil {--db-print-leafpage-count file | --db-print-pagesize file |
--db-verify file | --db-checkpoint directory [flag...] |
--db-list-logfiles directory | --db-prune directory |
--db-recover directory | --db-recover-harder directory |
--db-remove-environment directory}
and where options is:
bogoutil [-v] [-n] [-C] [-D] [-a age] [-c count] [-s min,max] [-y date]
[-I file] [-O file] [-x flags] [--config-file file]
like, that's the whole shape of her. iconic. β
π¦ DESCRIPTION π¦
bogoutil is part of the bogofilter Bayesian spam filter package. she's on the team!!
she's the one you call to dump and load bogofilter's Berkeley DB databases to and from text files, to do database maintenance functions, and to display the values for specific words. basically she's the backstage crew that makes the whole spam-filtering show happen, and honestly? obsessed. π
π OPTIONS π
okay this is the long part bestie, grab a snack. π
-d fileβ tellsbogoutilto print the contents of the databasefileto stdout. like a show-and-tell, but for databases.-H fileβ tellsbogoutilto print a histogram of the databasefileto stdout. the output is similar tobogofilter -vv. and the finale: hapaxes (tokens which were only seen once) and pure tokens (tokens which were encountered only in ham or only in spam) are counted. so you get a little stats era. π-l fileβ tellsbogoutilto load the data from stdin into the databasefile. and if the databasefilealready exists, stdin data is merged into the databasefile, with counts added up. merging!! she's so collaborative. π«Ά-m fileβ tellsbogoutilto perform maintenance functions on the specified database, i.e. discard tokens that are older than desired, have counts that are too small, or sizes (lengths) that are too long or too short. she's literally decluttering your tokens. spring cleaning vibes. π§Ή-w fileβ tellsbogoutilto display token information from the databasefile. this option takes an argument, which is either the name of the wordlist (usuallywordlist.db) or the name of the directory containing it. tokens can be listed on the command line or piped tobogoutil. when there are extra arguments on the command line,bogoutilwill use them as the tokens to lookup. if there are no extra arguments,bogoutilwill read tokens from stdin. very flexible queen. π-p fileβ tellsbogoutilto display the database information for one or more tokens. the display includes a probability column with the token's spam score (computed using bogofilter's default values). option-ptakes the same arguments as option-w. so like,-w's sibling, but with extra math. π₯-r fileβ tellsbogoutilto recalculate the ROBX value and print it as a six-digit fraction. six digits!! precise!! β¨-R fileβ does the same as-r, but saves the result in the training database without printing it. she's doing it silently. mysterious. π-I fileβ tellsbogoutilto read its input fromfilerather than stdin.-O fileβ tellsbogoutilto write its output tofilerather than stdout.-vβ produces verbose output on stderr. this option is primarily useful for debugging. she's telling you everything, ngl. π-Cβ inhibits reading configuration files and letsbogoutilgo with the defaults. raw dogging the defaults, no config. π--config-file fileβ tellsbogoutilto readfileinstead of the standard configuration file.-Dβ redirects debug output to stdout (it usually goes to stderr). just moving the gossip to a different group chat. π¬-x flagsβ sets debugging flags.-nβ stands for "replace non-ascii characters". it will replace characters with the high bit (0x80) by question marks. this can be useful if a word list has lots of unreadable tokens, for example from Asian spam. the "bad" characters will be converted to question marks and matching tokens will be combined when used with-mor-l, but not with-d. read that again bestie β NOT with-d. π¨-a ageβ indicates an acceptable token age, with older ones being discarded. the age can be a date (in formYYYYMMMDD) or a day count, i.e. discard tokens older than age days. bye bye old tokens π-c valueβ indicates that tokens with counts less than or equal to value are to be discarded.-s min,maxβ is used to discard tokens based on their size, i.e. length. all tokens shorter than min or longer than max will be discarded. goldilocks rules: not too short, not too long. π»-y dateβ is specifies the date to give to tokens that don't have dates. the format isYYYYMMDD. (yes the original says "is specifies", we're keeping it, it's her little typo, it's canon. π«Ά)-hβ prints the help message and exits. help is here!!-Vβ prints the version number and exits. know your queen's version. π
π ENVIRONMENT MAINTENANCE π
this whole section is about keeping the database environment happy and hydrated. π§
--db-checkpoint dirβ causesbogoutilto flush the buffer caches and checkpoint the database environment. self-care for caches. πββοΈ--db-list-logfiles dirβ causesbogoutilto list the log files in the environment. zero or more keywords can be added or combined (separated by whitespace) to modify the behavior of this mode. the default behavior is to list only inactive log files with relative paths. you can addallto list all log files (inactive and active). you can addabsoluteto switch the listing to absolute paths. so:allandabsolute, mix and match, separated by whitespace. iykyk. πΈ--db-prune dirβ causesbogoutilto checkpoint the database environment and remove inactive log files. cleanup era. π§Ήβ¨--db-recover dirβ runs a regular database recovery in the specified database directory. if that fails, it will retry with a (usually slower) catastrophic database recovery. if that fails, too, your database cannot be repaired and must be rebuilt from scratch. from scratch, bestie, that's the end of the line. this is only supported when compiled with Berkeley DB support with transactions enabled. trying recovery with QDBM or SQLite3 support will result in an error. π--db-recover-harder dirβ runs a catastrophic data base recovery in the specified database directory. if that fails, your database cannot be repaired and must be rebuilt from scratch. (same deal as above β final boss energy.) this is only supported when compiled with Berkeley DB support with transactions enabled. trying recovery with QDBM or SQLite3 support will result in an error. π--db-remove-environment directoryβ has no short option equivalent. it runs recovery in the given directory and then removes the database environment. use this before upgrading to a new Berkeley DB version if the new version to be installed requires a log file format update. like, say goodbye properly before you upgrade. π«‘--db-print-leafpage-count fileβ prints the number of leaf pages in the database file file as a decimal number, orUNKNOWNif the database does not support querying this figure.--db-print-pagesize fileβ prints the size of a database page in file as a decimal number, orUNKNOWNfor databases with variable page size or databases that do not allow a query of the database page size.--db-verify fileβ requests thatbogofilterverifies the databasefile. it prints only errors, unless in verbose mode. she's only speaking up if something's actually wrong. π
π DATA FORMAT π
bogoutil reads and writes text files where each nonblank line consists of a word, any amount of horizontal whitespace, a numeric word count, more whitespace, and (optionally) a date in form YYYYMMDD. blank lines are skipped. that's it, that's the format. simple, clean, slay. β¨
β RETURN VALUES β
0β for successful operation. π1β for most errors.3β for I/O or other errors. error3usually means that something is seriously wrong with the database files. seriously wrong. like, call someone wrong. π
π AUTHOR π
- Gyepi Sam
<gyepi@praxis-sw.com>. - Matthias Andree
<matthias.andree@gmx.de>. - David Relson
<relson@osagesoftware.com>.
for updates, see the bogofilter project page[1]. π«Ά
π¦ SEE ALSO π¦
bogofilter(1), bogolexer(1), bogotune(1), bogoupgrade(1)
π NOTES π
- the bogofilter project page
http://bogofilter.sourceforge.net/
and that's the whole page, bestie π this beauty comes to you from Bogofilter, dated 06/29/2013 β go forth and maintain those databases, you absolute icon. πβ¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: bogofilter-db 1.2.4-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: bogofilter-db 1.2.4-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: bogofilter-db 1.2.4-bp160.1.12 Β· GPL-2.0-or-later
- opensuse-leap 16.0: bogofilter-db 1.2.4-bp160.1.12 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms