Hello, I wrote this perl script (I looked for something existing but could not find anything), that allows users to create IMAP folders Learn-SPAM and Learn-HAM and move mail there (typically false positives and negatives) to train the bayes filter. The script looks for all these folders, and copies/moves the messages to a local spool, and calls sa-learn. (All actions are optional. See usage)
(Tried with cyrus 2.x) Feel free to use it (it GPLed) and let me know if you see room for improvement. Some vars will need adjustment for your system. Maarten
imap-sa-learn.pl
Description: Binary data
