The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Contributed by Erwin Harte.

This is a script used to create a fresh set of database files from spam/nonspam mail folders.

It uses a $HOME/.bayesian configuration file that can look like this:

--8<--- [paths] home = mail/Bayesian dir = mail dir = mail/.archive

[spam] folder = SPAM-bayesian folder = SPAM-assassin

[nonspam] folder = billing folder = bugtraq folder = family folder = friends folder = other --8<---

Home and dir parameters are taken from $HOME if not starting with '/'.

Home is where the database files will be stored. My setup is that I store them in ~/mail/Bayesian.xxx.yyy and symlink to that, the script updates that symlink and leaves the old files behind for someone or something else to clean up.

The folders are searched in each 'dir' that you provide.