BF_COMPACT(1)

πŸ’– BF_COMPACT(1) πŸ’–

okay bestie, welcome to the bogofilter corner of the manual pages, straight out of the Bogofilter Reference Manual ✨ this one's about bf_compact, and yes it's iconic, let's get into it 🫢


🌸 NAME 🌸

bf_compact β€” a shell script that compacts your bogofilter directory, fr fr πŸ’…


✨ SYNOPSIS ✨

bf_compact bogofilter_directory [wordlist_name...]

πŸ¦‹ DESCRIPTION πŸ¦‹

so the whole vibe of bf_compact is: it makes a more compact bogofilter working directory by doing a whole dump/load cycle πŸ”„ and while it's at it, it renames the previous bogofilter_directory to bogofilter_directory.old. glow-up AND a rebrand, we love to see it 😌

🚨 Note: bf_compact literally cannot be used to process the current working directory, ., because you can't rename that. it's giving "sorry bestie, the rules are the rules" πŸ™ˆ

If you don't hand it any wordlist_file arguments, then bf_compact will use the configured set of wordlists β€” but only if the bogofilter_directory you gave it is the same as the configured one. If it's a different directory, then it just uses all *.db files instead. different dir, different rules, periodt ✨


πŸ‘‘ EXIT STATUS πŸ‘‘

The script exits with status code 0 if everything went well, and nonzero if it encountered trouble. simple as that πŸ’–


πŸ’€ NOTES πŸ’€

⚠️ bestie, READ THIS. This script will delete bogofilter_directory.old and all of its contents! not a drill, not a vibe, it's just gone 😭

This script expects a SUSv2 compliant shell. So on Solaris systems, you should have the SUNWxcu4 package installed (when bogofilter is configured) so that /usr/xpg4/bin/sh can be used. iykyk 🧚


πŸŽ€ AUTHORS πŸŽ€

Matthias Andree β€” thank you for your service πŸ«‘πŸ’œ


and that's the whole page, bestie! 🌈 this was Bogofilter, dated 05/19/2019, and the manual section is BF_COMPACT(1). slay, go compact something (but not . πŸ’…) βœ¨πŸ’–