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

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

https://github.com/linagora/james-project/pull/4017 contributes the inlined 
attachments

> 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
>            Priority: Major
>
> As a user i want to add attachments when creating an email draft. This 
> including:
>  * normal attachments (multipart/mixed)
>  * inline attachments (multipart/related)
> *Example*
> *Request*
> {code:java}
> [[ "Email/set", {
>   "accountId": "ue150411c",
>   "create": {
>     "k192": {
>       "mailboxIds": {
>         "2ea1ca41b38e": true
>       },
>       "keywords": {
>         "$seen": true,
>         "$draft": true
>       },
>       "from": [{
>         "name": "Joe Bloggs",
>         "email": "[email protected]"
>       }],
>       "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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to