Nguyễn Việt Đức created JAMES-3383:
--------------------------------------

             Summary: Email/Query expose allowed sort in accountCapabilities
                 Key: JAMES-3383
                 URL: https://issues.apache.org/jira/browse/JAMES-3383
             Project: James Server
          Issue Type: Improvement
            Reporter: Nguyễn Việt Đức


# WHY
As a client i need to know what sort filters are supported by the server.
the list of field supported will be returned as an array of string in the 
emailQuerySortOption field of the capabilities in the session object.

`emailQuerySortOptions: String[] A list of all the values the server supports 
for the “property” field of the Comparator object in an Email/query sort (see 
Section 4.4.2). This MAY include properties the client does not recognise (for 
example, custom properties specified in a vendor extension). Clients MUST 
ignore any unknown properties in the list.`

The list of supported filters in this first implementation are :
{code:java}
receivedAt
size
from
to
subject
sentAt
hasKeyword
{code}

the following fields are not supported at the moment :
allInThreadHaveKeyword, someInThreadHaveKeyword
Because we don't support thread yet.


# HOW
- add the emailQuerySortOption fields to the supported capabilites

# DOD
- write an integration test validating that all the filter in the previous list 
appears in the capabilities in the session object




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to