Rémi Kowalski created JAMES-3375:
------------------------------------
Summary: Email/query Allow filtering by mailbox
Key: JAMES-3375
URL: https://issues.apache.org/jira/browse/JAMES-3375
Project: James Server
Issue Type: New Feature
Components: JMAP
Affects Versions: 3.6.0
Reporter: Rémi Kowalski
Assignee: Antoine Duprat
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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]