[
https://issues.apache.org/jira/browse/JAMES-3421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17210038#comment-17210038
]
Benoit Tellier commented on JAMES-3421:
---------------------------------------
We will likely not be working on this on the short term, community members
should feel free to work on this!
> Email/Query sort by hasKeyword
> ------------------------------
>
> Key: JAMES-3421
> URL: https://issues.apache.org/jira/browse/JAMES-3421
> Project: James Server
> Issue Type: Sub-task
> Components: JMAP
> Reporter: Benoit Tellier
> Assignee: Antoine Duprat
> Priority: Major
>
> = WHY
> With the new specifications as an user i want to be able to sort the emails
> by the presence of a given keyword
> `hasKeyword - This value MUST be considered true if the Email has the keyword
> given as an additional keyword property on the Comparator object, or false
> otherwise.
> `
> Here is the query to display first the emails containing the 'james' keyword.
> {code:java}
> [[ "Email/query",{
> "accountId": "ue150411c",
> "sort" : {
> "property": "hasKeyword",
> "keyword": "james",
> "isAscending": true
> }
> }, "0" ]]
> {code}
> = HOW
> - accept the 'hasKeyword' value in the 'property' field of the sort field of
> the request.
> = DOD
> - write an integration test demonstrating the sorting of the result by
> 'hasKeyword' in both ascending and descending order
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]