1

I have my own mail server (hosting package) on which spam assassin is installed, which basically does no help at all. I get a LOT of spam mails, between 50 and 100 daily. All from a different sender/domain/server, many have a similar subject but it changes a lot aswell. Some try to sell stuff, some try to install stuff, but none of them are any legitimate business at all.

The e-mail account(s) those go to are business accounts on my own domain, simply changing my mail everywhere is not an option. I use thunderbird as my mail client.

I've been out of office for a bit and I now have thousands of unread mails, simply deleting all won't work because around 5% are important.

I have a text file containing thousands of subjects from scam mails that I frequently get. Is there anyway I can use this to automatically delete all mails with the same subject on specific mail accounts?

I know there is the message filters feature in thunderbird, but I don't feel like manually adding thousands of subjects to it at all.

I have enabled thunderbird's junk detection, but it has no training data yet so it doesn't help with existing mails.

I tried the search filter "Junk level percentage greater than 0" and it showed me around 400 mails (I'm guessing this comes from spam assassin on the server?), there's still thousands left that are classified as non-spam by the server and thunderbird though.

Do I have any reliable (I do not want anything that might not be spam to be considered as spam and deleted) option of detecting what is spam that is already existing?

What I'm thinking is an advanced search filter that matches any mail in an account which subject matches any subject within a text file (one subject per line) or similar approach, so I'm guessing my real question would be:

Is there a way to programatically/API access thunderbird and search/delete mails?

confetti
  • 2,605

0 Answers0