VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • JMAP
    • None

    Description

      === 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

      :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.
      

      === DOD

      === Example

      {
        "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"]]
      }
      

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aduprat Antoine Duprat
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment