Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Simple blacklist spam filter #148
If the IMAP server does not provide a spam filter, there is currently no way to avoid continuous notifications when spam arrives. To solve this problem, I implemented a simple blacklist-based spam filter extension to K-9.
Shortly after I posted this extension on my website, I received eleven visits coming from a google search for "k-9 spam filter", so I think this feature is requested by users.
The filter is disabled by default and can be enabled in the account options. If enabled, mails moved to the spam folder are declared as spam and their sender addresses are added to the blacklist. On the other hand, mails moved out from the spam folder to another location are assumed not to be spam; their sender address is removed from the blacklist. The blacklist can be easily edited in the account preferences.
Currently, the preferences are only translated into German and English.
I like the idea of a simple blacklist. But using the preference storage to save the blacklisted addresses is a very bad idea and doesn't scale very well. They should be stored in a separate database table.
If you are willing to make the necessary changes I am more than happy to tell you what exactly I have in mind and answer any questions you might have. We can discuss this on the developer mailing list (https://groups.google.com/group/k-9-dev), on IRC (#k-9, Freenode) where many of the K-9 developers can be found, or you can reach me via email (cketti [at] Gmail, German is fine).
I openend a thread in google groups: https://groups.google.com/forum/?fromgroups#!topic/k-9-dev/U9XYbv8e5SA