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 "Raphaël Ouazana (JIRA)" <se...@james.apache.org> on 2015/12/15 16:03:46 UTC

[jira] [Updated] (JAMES-1648) Jmap GetMessages should handle properties parameter to answer partial Messages objetss

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

Raphaël Ouazana updated JAMES-1648:
-----------------------------------
    Description: 
The properties request parameter can be used to specify a list of properties to get into the response.
In case of getMessages, some properties have a special meaning:

    body: If "body" is included in the list of requested properties, it will be interpreted by the server as a request for "htmlBody" if the message has an HTML part, or "textBody" otherwise.
    headers.property: Instead of requesting all the headers (by requesting the "headers" property, the client may specify the particular headers it wants using the headers.property-name syntax, e.g. "headers.X-Spam-Score", "headers.X-Spam-Hits"). The server will return a headers property but with just the requested headers in the object rather than all headers. If "headers" is requested, the server MUST ignore the individual header requests and just return all headers. If a requested header is not present in the message, it MUST not be present in the headers object. Header names are case-insensitive.

Moreover the id property is always returned. 

  was:
The properties request parameter can be used to specify a list of properties to get into the response.
In case of getMessages, some properties have a special meaning:

    body: If "body" is included in the list of requested properties, it will be interpreted by the server as a request for "htmlBody" if the message has an HTML part, or "textBody" otherwise.
    headers.property: Instead of requesting all the headers (by requesting the "headers" property, the client may specify the particular headers it wants using the headers.property-name syntax, e.g. "headers.X-Spam-Score", "headers.X-Spam-Hits"). The server will return a headers property but with just the requested headers in the object rather than all headers. If "headers" is requested, the server MUST ignore the individual header requests and just return all headers. If a requested header is not present in the message, it MUST not be present in the headers object. Header names are case-insensitive.

Moreover the id properties is always returned. 


> Jmap GetMessages should handle properties parameter to answer partial Messages objetss
> --------------------------------------------------------------------------------------
>
>                 Key: JAMES-1648
>                 URL: https://issues.apache.org/jira/browse/JAMES-1648
>             Project: James Server
>          Issue Type: Improvement
>            Reporter: Raphaël Ouazana
>
> The properties request parameter can be used to specify a list of properties to get into the response.
> In case of getMessages, some properties have a special meaning:
>     body: If "body" is included in the list of requested properties, it will be interpreted by the server as a request for "htmlBody" if the message has an HTML part, or "textBody" otherwise.
>     headers.property: Instead of requesting all the headers (by requesting the "headers" property, the client may specify the particular headers it wants using the headers.property-name syntax, e.g. "headers.X-Spam-Score", "headers.X-Spam-Hits"). The server will return a headers property but with just the requested headers in the object rather than all headers. If "headers" is requested, the server MUST ignore the individual header requests and just return all headers. If a requested header is not present in the message, it MUST not be present in the headers object. Header names are case-insensitive.
> Moreover the id property is always returned. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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