Benoit Tellier created JAMES-3419:
-------------------------------------
Summary: 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
== 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]