Copyright 2011 Donald Craig (


Technical documentation for a buryspam, a bayesian email filter and IMAP client.


  1. Copy buryspam.rb script to somewhere in your home directory.

  2. Move all your spam/non-spam messages into separate directories.

  3. Create a ~/.buryspamrc configuration file with good_dirs, bad_dirs and word_file parameters set.

  4. Initialize filter with ruby buryspam.rb -i

  5. Add filter rules to .procmailrc file that call ruby buryspam.rb -f and store spam in a spam mbox.

  6. To transfer messages from an IMAP server, run ruby buryspam.rb -t, or to periodically transfer messages, ruby ruby buryspam.rb -p.

See for more details.


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <>