Nguyễn Việt Đức created JAMES-3354: --------------------------------------
Summary: Mailbox/set creation: parentId handling Key: JAMES-3354 URL: https://issues.apache.org/jira/browse/JAMES-3354 Project: James Server Issue Type: Improvement Reporter: Nguyễn Việt Đức Property: *parentId : String* The Mailbox id for the parent of this Mailbox - *Null* if this Mailbox is at the top level. - Mailboxes form acyclic graphs (forests) directed by the child-to-parent relationship. There MUST NOT be a loop. - There MUST NOT be two sibling Mailboxes with both the same parent and the same name. **Request** {code:java} { "using": [ "urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail" ], "methodCalls": [ [ "Mailbox/set", { "accountId": "JMAP-ID", "ifInState": null, "create": { "CHILD-MAILBOX-1": { "name": "mailbox_name", "role": "Inbox", "namespace": "Personal", "parentId": "0001" ... } } } ] ] } {code} **Response** {code:java} { "methodResponses": [ [ "Mailbox/set", { "accountId": "JMAP-ID", // the requested accountId "oldState": null, "newState": null, "created": { "CHILD-MAILBOX-1": { "id": "0002", "parentId": "0001", "sortOrder": 10, "totalEmails": 0, "unreadEmails": 0, "totalThreads": 0, "unreadThreads": 0, "myRights": { "mayReadItems":false, "mayAddItems":true, "mayRemoveItems":false, "maySetSeen":true, "maySetKeywords":false, "mayCreateChild":true, "mayRename":true, "mayDelete":false, "maySubmit":false } } } } ] ], "sessionState": "abc" } {code} **DOD:** Unit + integration tests to show user can create a child mailbox of existing mailbox. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org