Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client-side spam filtering #9217

Open
viktorix opened this issue Jan 5, 2024 · 1 comment
Open

Client-side spam filtering #9217

viktorix opened this issue Jan 5, 2024 · 1 comment

Comments

@viktorix
Copy link

viktorix commented Jan 5, 2024

Is your feature request related to a problem? Please describe.

Email spam is the main problem. Mail app allows users to "Mark as spam" but it simply moves the email to the Spam folder, it doesn't actually do anything useful to help reduce/fight spam.

Describe the solution you'd like

Ideally, it would be helpful if the Mail app included a built-in spam filter that could be trained by marking emails as spam. Similar to how Thunderbird allows users to train spam filter.

Another option, offer integration with a third-party spam solution. Ideally, open source, like SpamAssassin. Something similar to how Sieve is used for filtering emails or Talk uses TURN server.

Mail app should also respect spam headers set by server-side spam filters, such as SpamAssassin. This could be an option for users to select, here's how Thunderbird handles it:
image

Describe alternatives you've considered

Nothing can be done with the "Mark as spam" option right now.

Additional context

Thunderbird's adaptive filtering:

Thunderbird's primary method of dealing with junk mail is an adaptive filter. Thunderbird's adaptive filter actually learns how it should classify e-mail by learning from your habits.

If you consistently mark a certain type of e-mail as junk, Thunderbird will learn that that type of e-mail should be marked as spam in the future. However, e-mail that you wish to receive will not be marked as spam, because Thunderbird's filter is entirely based on your actions.

The filter improves as it watches how you sort your e-mail, and with time the filter will reach nearly 100% classification accuracy. More important, however, is that the filter is intentionally conservative in what it marks as junk mail. If Thunderbird can't quite decide whether an e-mail is junk or not, it will mark it as not spam. It's that simple -- after training, the filter simply doesn't create false positives.

@ChristophWurst ChristophWurst changed the title "Mark as spam" doesn't do anything useful Client-side spam filtering Jan 16, 2024
@ChristophWurst
Copy link
Member

This is technically doable, but has downsides. A server-side filter works synchronously - it filters the messages before they are appended to a user's inbox. A client-side filter in this app is lagging behind. If you connect Mail and K9/Android to the same IMAP server you might see a spam message pop up on your phone but "disappear" 20 minutes later when Mail is synchronizing and running the local spam filter.
It's the same problem with clients doing local filtering or local autoresponders.

Mail app should also respect spam headers set by server-side spam filters, such as SpamAssassin. This could be an option for users to select, here's how Thunderbird handles it:

That's something we can definitely do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants