linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
301 stars 67 forks source link

[Bug] I still receive letters from addresses marked as Spam #3081

Open tprudentova opened 1 month ago

tprudentova commented 1 month ago

0.12.0, tested on Android, Safari, Firefox, Opera; mail.stg.lin-saas.com

  1. Select a letter, mark it as Spam
  2. Receive a letter from the sender of the letter marked as Spam
  3. The letters still arrive to Inbox and not to Spam

Expectation: if I marked an address as Spam, the letters arrive to the Spam folder; I see the Spam banner

https://github.com/user-attachments/assets/7e231166-3b53-4641-bd84-2f150bf0f0b8

hoangdat commented 1 month ago

Hi @Arsnael , what happens if an email address which was marked as spam previously send us another emails?

Arsnael commented 1 month ago

Depends how TMail was configured with rspamd on TWP (not gonna check now I'm busy on customer deployment).

It's a learning process, a mail is scored by rspamd on different criterias as spam or not, not only on the sender as well, so maybe it would need a bit more to learn. And maybe the rspamd listener aint used, cron jobs are for daily spam and reports and maybe need to wait or something is wrong in the setup. Would need to check if per user spam report has been enabled or not on twp.

I wouldn't call that a bug though...

quantranhong1999 commented 3 weeks ago

As Rene said, the spam learning on the backend side is a process e.g. spam learning only triggers having 20 spam messages for example. Of course, we could lower the threshold, but a small learning set is not efficient enough (be careful with false negative).

I would not consider it a bug either. If the user needs to avoid receiving mail from an address, I think the frontend side could support a button to automatically create an email rule that moves the mails to Spam if the address matched.