modoboa / modoboa-amavis

The amavis frontend of Modoboa
https://modoboa.org
MIT License
23 stars 15 forks source link

A way to bulk-learn spam #78

Open skandragon opened 6 years ago

skandragon commented 6 years ago

I am using Modoboa as a UI to a filtering mail server, where the final delivery is made on another server. I would like to have a way to submit spam email, ideally via a web interface API call, to mark it as spam.

I can train people to move things into a specific imap folder, and run a script to upload those spam messages periodically, to properly train their filter.

Also, bootstrapping may be nice -- I have the last 40,000 spam messages, for instance.

tonioo commented 6 years ago

@skandragon Can you describe the use case of this API a bit more please?

skandragon commented 6 years ago

The use case is for people to move things to a "this is spam" folder, and have some system process take them and submit them. This way, people do not need to go to the UI to provide feedback on spam (and ham most likely) to get the benefits of a well trained bayesian filter.

tonioo commented 6 years ago

If you're using dovecot, I think you can already do that using dovecot-antispam plugin and spamc (the spamassassin client).

Otherwise, an API could indeed be useful.