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

fix(search): Limit recipient joins to their types #8959

Merged

Conversation

ChristophWurst
Copy link
Member

  • The join for FROM should only search only search FROM recipients.
  • The join for TO should only search TO recipients.
  • Etc.

Without the additional expression in the WHERE clause, all recipient types would match.

Fixes #8954

How to test

  1. Open the app
  2. Configure an account
  3. Search for a message by sender

main: search results include messages where the sender is the sender, but also recipient, cc or bcc.
here: search results only show messages where the sender is the sender.

* The join for FROM should only search only search FROM recipients.
* The join for TO should only search TO recipients.
* Etc.

Without the additional expression in the WHERE clause, all recipient
types would match.

Signed-off-by: Christoph Wurst <[email protected]>
@ChristophWurst
Copy link
Member Author

/backport to stable3.4

@ChristophWurst ChristophWurst merged commit 0490cdc into main Oct 16, 2023
28 checks passed
@ChristophWurst ChristophWurst deleted the fix/search/limit-recipient-joins-to-recipient-type branch October 16, 2023 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Mail-App Advanced Search Bug
2 participants