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
327 stars 75 forks source link

[Bug] [SEARCH] No results if you add >1 address in the From field #3291

Open tprudentova opened 1 day ago

tprudentova commented 1 day ago

0.14.2, mail.stg.lin-saas.com, tested on Safari, Firefox, Android

  1. Open advanced search
  2. Click on the From field
  3. Enter at least 2 email addresses
  4. Search
  5. There are no results

Expectation: if I add several email addresses to the From field, I want to see emails from all of these people

https://github.com/user-attachments/assets/eab3c054-a30b-4e11-a2a6-746e4f6519e8

hoangdat commented 1 day ago

Dear Ms. @tprudentova do you have any email which send from 2 senders? Please compare with other email solution too.

tprudentova commented 1 day ago

@hoangdat but an email cannot have 2 different senders... Or do I not understand something? I mean, it can have several recipients, but senders?.. Please correct me Yandex and Mail.ru for instance simply don't allow adding more that 1 address to the From field

hoangdat commented 23 hours ago

Hi, Email still accept more than 1 sender, but most of the real case hard to have it (yandex and mail.ru are example).

If you have email which have 2 senders, you will find it with your filter.

chibenwa commented 22 hours ago

Screenshot from 2024-11-21 17-30-17

Makes sens with the current with the current (logical AND for from field) implementation as it yields no result

image

GMAIL implementation as a logical AND makes no real sense to me. Let's not blindly follow them when they are wrong...

hoangdat commented 11 hours ago

ok with OR logic.