[
https://issues.apache.org/jira/browse/JAMES-3419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209964#comment-17209964
]
Benoit Tellier commented on JAMES-3419:
---------------------------------------
We will likely not be working on this on the short term, community members
should feel free to work on this!
> 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
>
> == 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.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]