Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6.0
    • None
    • None

    Description

      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*

      {
         "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"
                              ...
                          }
                      }
                 }
             ]
         ]
      }
      

      *Response*

      {
         "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"
      }
      

      *DOD:* Unit + integration tests to show user can create a child mailbox of existing mailbox.

      Attachments

        Activity

          People

            Unassigned Unassigned
            ducnv Nguyễn Việt Đức
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: