[
https://issues.apache.org/jira/browse/JAMES-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17197340#comment-17197340
]
René Cordier commented on JAMES-3375:
-------------------------------------
[https://github.com/linagora/james-project/pull/3775] contributed to this
> 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
> Priority: Major
>
> First ticket to implement the filtering when querying emails.
> The handling of shared mailbox will be done later in another issues
> h1. 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" ]]
>
> h1. 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
>
> h1. 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]