bf_compact - shell script to compact a bogofilter directory
bf_compactcreates a more compact
working directory with a dump/load cycle and renames the previous
bf_compactcannot be used to process the current working directory, ".", because of directory renaming issues.
wordlist_filearguments are given, then
bf_compactwill use the configured set of wordlists, if the given
bogofilter_directoryis the same as the configured, or use all *.db files if it is a different directory.
The script exits with status code 0 if everything went well, and nonzero if it encountered trouble.
This script will delete
bogofilter_directory.oldand all of its contents!
This script is meant for use with Berkeley DB based
This script expects a SUSv2 compliant shell. Solaris systems should have the
package installed (when
is configured) so that
/usr/xpg4/bin/shcan be used.