[ 
https://issues.apache.org/jira/browse/JAMES-3372?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benoit Tellier closed JAMES-3372.
---------------------------------
    Fix Version/s: 3.6.0
       Resolution: Fixed

> 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
>            Priority: Major
>             Fix For: 3.6.0
>
>
> * Fetching a specified header property by adding header: header-field-name to 
> the request.
>  * The resulting EmailView JSON will have a {{header:}} header-field-name 
> value with an associated type RawHeader.
>  * Header field name can be any series of one or more printable ASCII 
> characters (i.e., characters that have values between 33 and 126, inclusive), 
> except for colon ':'
>  * Header field names are matched case insensitively. 
> 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]

Reply via email to