Currently marking a message as spam does nothing other than set a flag in the freescout database. We would like to use the rspamd HTTP interface and send any email marked as spam/ham to it for training. This could easily be a plugin.
Alternatively we could have it move the message in the IMAP folder structure and have rspamd eat that, but I have a vague memory that this was more difficult than we thought.