We require an application, preferably in Python, which downloads emails from an IMAP mailbox and passes them to the local SpamAssassin daemon.
$ imapspam -s server (-P port) (--ssl | --tls) -u user -p password -f folder (-t target) (-r -R) --spam | --ham
Pretty self-explanatory thing, except for:
-t: Target mailbox, where emails are moved after the procedure (for example from "Spam" to "Old Spam")
-r: Remove local copies of the emails after the procedure
-R: Remove remote copies of the emails after the procedure
If you have any more questions, don't hesitate to ask.
11 freelancers are bidding on average $185 for this job
I have already created this in perl for myself and can setup/share the work with you. To clarify, I am expecting that you want to use this process to help train SpamAssassin?