I'm trying to integrate SpamAssassin running on a server with Thunderbird. Basically I need to be able to select several emails in Thunderbird and send them back to SpamAssassin for training, either as spam or ham.
I tried several approaches:
-
Tried "Report Spam" plugin, which is able to send message back to server either as an email attachment or via HTTP post. However, the plugin is rather buggy… Does not support sending several messages at once, "report as ham" is not working at all, etc.
-
Wanted to make a custom button that will copy selected messages to a separate IMAP folder (I could create "LearnAsSpam" and "LearnAsHam" folders in IMAP that will get processed automatically on server), but don't even know how to approach this in Thunderbird, don't want to learn Thunderbird extention authoring…
Server-side, I'm prepared to do some custom programming or integration needed (can receive a message via HTTP / SMTP / whatever), my stumbling block is Thunderbird…
So, how can I send emails from Thunderbird back to SpamAssassin running on email server for Bayesian training, with as few keystrokes as possible?
Best Answer
You should be able to configure Thunderbird's Junk button behavior to fit your needs. Two steps are required:
Tools | Options | Security | Junk
(or on OSX,Preferences | Security
) and tickWhen I mark messages as junk:
andMove them to the account's "Junk" folder
Tools | Account Settings...
, locate your mail account and proceed toJunk Settings
for that account. ChoseMove new messages to Other:
and select the desired IMAP folder.Reference: https://support.mozillamessaging.com/en-US/kb/thunderbird-and-junk-spam-messages