james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benoit Tellier (Jira)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-3418) Email/get 6. Specific unparsed header :all
Date Thu, 08 Oct 2020 02:56:00 GMT

    [ https://issues.apache.org/jira/browse/JAMES-3418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17209962#comment-17209962
] 

Benoit Tellier commented on JAMES-3418:
---------------------------------------

We will likely not be working on this on the short term, community members should feel free
to work on this!

> 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


Mime
View raw message