If I feed the IMAP folder to sa-learn using the --mbox flag, does it know to look at the attachment as the item to learn? Or am I screwing up here?
Option B)
SA-learn won't know to learn from attachments generated by MailScanner. Mailscanner generates it's own formats which are a bit different from the ones SA generates.
You'll need to find some way of using an intermediate tool to extract the attachments and feed those to sa-learn. You might be able to abuse mutt for this task, but I'm not really up-to-speed on command line tools for mime parsing.
