james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Raphaël Ouazana (JIRA) <server-...@james.apache.org>
Subject [jira] [Updated] (JAMES-1648) Jmap GetMessages should handle properties parameter to answer partial Messages objetss
Date Tue, 15 Dec 2015 15:03:46 GMT

     [ 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


Mime
View raw message