You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "René Cordier (Jira)" <se...@james.apache.org> on 2021/01/05 04:58:00 UTC

[jira] [Commented] (JAMES-3461) Implement Mailbox/changes method and related contract tests

    [ https://issues.apache.org/jira/browse/JAMES-3461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17258654#comment-17258654 ] 

René Cordier commented on JAMES-3461:
-------------------------------------

https://github.com/linagora/james-project/pull/4194 add registration of MailboxChangeListener by default

> Implement Mailbox/changes method and related contract tests
> -----------------------------------------------------------
>
>                 Key: JAMES-3461
>                 URL: https://issues.apache.org/jira/browse/JAMES-3461
>             Project: James Server
>          Issue Type: Sub-task
>            Reporter: Lan Khuat
>            Priority: Major
>             Fix For: 3.6.0
>
>
> From the spec: [https://jmap.io/spec-core.html#changes]
> {code:java}
> The Foo/changes method allows a client to efficiently update the state of its Foo cache to match the new state on the server. 
> {code}
> h1. How
> 1. Write a serializer to deserialize/serialize Mailbox/changes request/response.
> 2. Implement Mailbox/changes method + tests.
> h1. Example
> *Request*
> {code:java}
> [[ "Mailbox/changes", {
>  "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
>  "sinceState": "000001"
> }, "t0" ]]
> {code}
> *Response*
> {code:java}
> [[ "Mailbox/changes", {
>  "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
>  "oldState": "000001",
>  "newState": "000002",
>  "hasMoreChanges": false,
>  "created": [ "1", "2" ],
>  "updated": [],
>  "destroyed": []
> }, "t0" ]]
> {code}
> h1. DoD
> Write integration tests to show that we can retrieve the changes to mailbox(es) from a particular state.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org