bf_compact(1)

bf_compact1

Shell script to compact a bogofilter directory

Usage

bf_compact bogofilter_directory [wordlist_name ...]

Overview

bf_compact creates a more compact bogofilter working directory with a dump/load cycle and renames the previous bogofilter_directory to bogofilter_directory.old.

Note: bf_compact cannot be used to process the current working directory, ".", because that cannot be renamed.

If no wordlist_file arguments are given, then bf_compact will use the configured set of wordlists, if the given bogofilter_directory is the same as the configured, or use all *.db files if it is a different directory.

Exit status

The script exits with status code 0 if everything went well, and nonzero if it encountered trouble.

Notes

This script will delete bogofilter_directory.old and all of its contents!

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

Releases

11 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0–7
  4. 8–10
  5. 11–Arch

Authors

Matthias Andree

From bogofilter-db 1.2.5-12 in Arch Linux 2026-11-01. Also shipped by bogofilter-kyotocabinet, bogofilter-lmdb, bogofilter-sqlite. Parsed by carta from the page's man source.