[ https://issues.apache.org/jira/browse/JAMES-3419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier closed JAMES-3419. --------------------------------- Fix Version/s: 3.8.0 Resolution: Fixed > Email/get 15. EmailBodyPart individual headers > ---------------------------------------------- > > Key: JAMES-3419 > URL: https://issues.apache.org/jira/browse/JAMES-3419 > Project: James Server > Issue Type: Sub-task > Components: JMAP > Reporter: Benoit Tellier > Assignee: Antoine Duprat > Priority: Major > Fix For: 3.8.0 > > Time Spent: 40m > Remaining Estimate: 0h > > == What > Requesting arbitrary headers, in persed forms, for bodyparts... > == The spec > {code:java} > In addition, the client may request/send EmailBodyPart properties > representing individual header fields, following the same syntax and > semantics as for the Email object, e.g., header:Content-Type. > {code} > == Definition of done: > - Write integrationt ests for the following additional properties: > - [ ] `header:Content-Type` > - [ ] `header:Content-Type:all` > - [ ] `header:Content-Type:asText` > - [ ] `header:Content-Type:asText:all` > Other asXXX methods should be supported. > == Example > {code:java} > { > "using": [ > "urn:ietf:params:jmap:core", > "urn:ietf:params:jmap:mail"], > "methodCalls": [[ > "Email/get", > { > "accountId": > "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6", > "ids": ["3647"], > "properties": ["htmlBody"], > "bodyProperties": ["partId", "header:ContentType:asText"] > }, > "c1"]] > } > {code} > Will return: > {code:java} > { > "sessionState": "75128aab4b1b", > "methodResponses": [[ > "Email/get", > { > "accountId": > "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6", > "state": "000001", > "list": [ > { > "id": "3647", > "htmlBody": [ > { > "partId": "partId3", > "header:ContentType:asText": "text/plain; charset=UTF-8", > } > ] > ], > "notFound": [] > }, > "c1"]] > } > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org