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 2020/10/21 02:26:00 UTC

[jira] [Closed] (JAMES-3412) Update Email Keywords: partial update

     [ https://issues.apache.org/jira/browse/JAMES-3412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

René Cordier closed JAMES-3412.
-------------------------------
    Resolution: Done

> Update Email Keywords: partial update
> -------------------------------------
>
>                 Key: JAMES-3412
>                 URL: https://issues.apache.org/jira/browse/JAMES-3412
>             Project: James Server
>          Issue Type: Sub-task
>          Components: JMAP
>            Reporter: Benoit Tellier
>            Assignee: Antoine Duprat
>            Priority: Major
>             Fix For: 3.6.0
>
>
> **WHAT**
> - The client may send a minimal patch: 
> As a User i want to changing the keywords of an Email
> **How**
> The format of the keywords/mailboxIds properties means that when updating an Email, you can either replace the entire set of keywords/Mailboxes (by setting the full value of the property) or add/remove individual ones using the JMAP patch syntax (see [@!RFC8620], Section 5.3 for the specification and Section 5.7 for an example)
> **Example**
> - The client may send the whole object to the server:
> {code:java}
> [[ "Email/set", {
>                         "accountId": "x",
>                         "update": {
>                           "a": {
>                             "keywords/chopin": true,
>                             "keywords/mozart": null
>                           }
>                         }
>                       }, "0" ]]
> {code}
> Result should be:
> `chopin` added 
> `mozart` removed
> `Bach` is not touched
> **DOD**: Write integrations test for it in both case one or many keywords.



--
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