Lan Khuat created JAMES-3372:
--------------------------------
Summary: JMAP Email/get specific unparsed header
Key: JAMES-3372
URL: https://issues.apache.org/jira/browse/JAMES-3372
Project: James Server
Issue Type: Improvement
Reporter: Lan Khuat
Fetching a specified header property by adding {{header:X-HEADER-NAME}} to the
request. The resulting EmailView JSON will have a {{header:X-HEADER-NAME}}
value with an associated type RawHeader.
{code:java}
header:{header-field-name}
{header-field-name} field names are matched case insensitively.
{header-field-name} means any series of one or more printable ASCII characters
(i.e., characters that have values between 33 and 126, inclusive), except for
colon (:)
{code}
Example:
{code:java}
{
"using": [
"urn:ietf:params:jmap:core",
"urn:ietf:params:jmap:mail"],
"methodCalls": [[
"Email/get",
{
"ids": [ "message_id1"],
"properties": ["header:Subject"]
},
"c1"]]
}
Will return
{
"sessionState": "75128aab4b1b",
"methodResponses": [[
"Email/get",
{
"accountId":
"29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
"state": "000001",
"list": [
{
"id": "message_id1",
"header:Subject": "World domination"
}
]
},
"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]