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

Email/query Allow filtering by mailbox #3714

Closed
remk opened this issue Aug 31, 2020 · 1 comment
Closed

Email/query Allow filtering by mailbox #3714

remk opened this issue Aug 31, 2020 · 1 comment
Assignees
Milestone

Comments

@remk
Copy link
Member

remk commented Aug 31, 2020

First ticket to implement the filtering when querying emails.
The handling of shared mailbox will be done later in another issues

Why

As an user i want to be able to select the mail in a mailbox like this :

[[ "Email/query",{
  "accountId": "ue150411c",
  "filter":  {
     "inMailbox": "myMailboxID"
}
}, "0" ]]

I also want to be able to select emails NOT in a set of mailboxes

[[ "Email/query",{
  "accountId": "ue150411c",
  "filter":  {
     "inMailboxOtherThan": ["myMailboxID1", ""myMailboxID2"]
}
}, "0" ]]

HOW

  • accept a simple FilterCondition with an optional 'inMailbox' field
  • accept a simple FilterCondition with an optional 'inMailboxOtherThan' field
  • filter the query with the provided mailboxId

Still to groom

  • error when mailbox not found or empty result ?

DOD

  • write integration demonstrating that a user can filter the email of one of its mailbox.

  • write integration demonstrating that a user can filter the email not in some of its mailboxes.

  • write integration demonstrating that a user can filter the email by both those filters. The expected result is the intersection of the results of both filters.

@chibenwa
Copy link
Member

chibenwa commented Sep 1, 2020

error when mailbox not found or empty result ? => empty result. Error if the mailboxId is invalid...

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

No branches or pull requests

3 participants