You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Benoit Tellier (Jira)" <se...@james.apache.org> on 2021/04/04 16:21:00 UTC

[jira] [Reopened] (JAMES-3418) Email/get 6. Specific unparsed header :all

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

Benoit Tellier reopened JAMES-3418:
-----------------------------------

> Email/get 6. Specific unparsed header :all
> ------------------------------------------
>
>                 Key: JAMES-3418
>                 URL: https://issues.apache.org/jira/browse/JAMES-3418
>             Project: James Server
>          Issue Type: Sub-task
>          Components: JMAP
>            Reporter: Benoit Tellier
>            Assignee: Antoine Duprat
>            Priority: Major
>
> === Objective
> The property looks like: `header:X-HEADER-NAME:all`
> The resulting EmailView JSON will have a `header:X-HEADER-NAME:all` value with an associated type RawHeader[].
> === The spec
> https://jmap.io/spec-mail.html#properties-of-the-email-object 4.1.3
> {code:java}
> :all This means the value is an array, with the items corresponding to each instance of the header field, 
> in the order they appear in the message. 
> If this suffix is not used, the result is the value of the last instance of the header field 
> (i.e., identical to the last item in the array if :all is used), or null if none.
> {code}
> === DOD
> === Example
> {code:java}
> {
>   "using": [
>     "urn:ietf:params:jmap:core",
>     "urn:ietf:params:jmap:mail"],
>   "methodCalls": [[
>     "Email/get",
>     {
>       "ids": [ "message_id1"],
>       "properties": ["header:X-HEADER-NAME:all"]
>     },
>     "c1"]]
> }
> Will return
> {
>   "sessionState": "75128aab4b1b",
>   "methodResponses": [[
>     "Email/get",
>     {
>       "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6",
>       "state": "000001",
>       "list": [
>         {
>           "id":7,
>           "header:X-HEADER-NAME:all": ["UNPARSED1", "UNPARSED2"]
>         }
>       ]
>     },
>     "c1"]]
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org