Spam sorting from maildir to maildir I wrote this script some time ago to classify my spam/ham, it used to be a huge cron script that did the same thing. But ever since i switched to Maildir in my mailboxes i needed to rewrite it all. This script pulls the spam/ham that hasn't been classified properly from 2 designated mailboxes, passes them to bogofilter and from there to procmail. The mail will be re-delivered after the classification is corrected.

This will cause a problem if you keep track of delivered message count through your procmail logs, as the re-sorted mails will appear as normal delivered mails.

Download

You can download my script here: sortmyspam.sh
To get this to run nicely add the following to your crontab:
*/15 * * * * ~/pathto/sortmyspam