Lan Khuat created JAMES-3439:
--------------------------------

             Summary: Email/set create specify attachments
                 Key: JAMES-3439
                 URL: https://issues.apache.org/jira/browse/JAMES-3439
             Project: James Server
          Issue Type: Bug
            Reporter: Lan Khuat


As a user i want to add attachments when creating an email draft.

Example

Request
{code:java}
[[ "Email/set", {
  "accountId": "ue150411c",
  "create": {
    "k192": {
      "mailboxIds": {
        "2ea1ca41b38e": true
      },
      "keywords": {
        "$seen": true,
        "$draft": true
      },
      "from": [{
        "name": "Joe Bloggs",
        "email": "j...@example.com"
      }],
      "subject": "World domination",
      "receivedAt": **"2018-07-10T01:03:11Z",
      "sentAt": "2018-07-10T11:03:11+10:00",
      "attachments": [
        {
          "blobId": "vuebziouvbher",
          "type":"text/plain",
          "charset":"UTF-8",
          "disposition": "attachment",
          "language": ["fr"],
          "location": ["http://125.26.23.36/content";]
        }
      ]
    }
  }
}, "0" ]]
{code}
Response (with Email/get)
{code:java}
"methodResponses": [[
  "Email/get",
  {
    "mailboxIds": {
      "1": true
    },
    "subject": "World domination",
    "attachments": [
      {
        "partId": "3",
        "blobId": "$blobIdToDownload",
        "size": 11,
        "type": "text/plain",
        "charset": "UTF-8",
        "disposition": "attachment",
        "language": ["fr", "en"],
        "location": "http://125.26.23.36/content";
      }
    ]
  }, "0"
]]
{code}



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

Reply via email to