---
name: "bf_compact-sqlite"
section: "1"
platform: "linux"
package: "bogofilter-sqlite"
version: "1.2.5-1+b4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/bf_compact"
---

# bf\_compact-sqlite(1)

shell script to compact a bogofilter directory

Part of [bf\_compact(1)](/bf_compact/1.md).

## NAME

bf\_compact - shell script to compact a bogofilter directory

## SYNOPSIS

**bf\_compact** *bogofilter\_directory* \[*wordlist\_name*...\]

## DESCRIPTION

**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.

## AUTHORS

Matthias Andree
