Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
- Objective
Fetch metadata properties from the MessageMetadataView object
- The spec
https://jmap.io/spec-mail.html#emails 4.1.1
- Definition of Done
Add the properties receivedAt to MessageMetadataView object
Allow fetching id, blobId, threadId (=id since each message forms its own thread), mailboxIds, keywords, size, receivedAt
Handling found/notFound cases
- Example
{ "using": [ "urn:ietf:params:jmap:core", "urn:ietf:params:jmap:mail"], "methodCalls": [[ "Email/get", { "ids": [ "message_id1", "message_id2"] }, "c1"]] } Will return { "sessionState": "75128aab4b1b", "methodResponses": [[ "Email/get", { "accountId": "29883977c13473ae7cb7678ef767cbfbaffc8a44a6e463d971d23a65c1dc4af6", "state": "000001", "list": [ { "id": "message_id1", "blobId": "blob_id1", "threadId": "message_id1", "mailboxIds": { "mailbox_id1": true }, "keywords": { "seen": true }, "size": 1234, "receivedAt": "2014-11-30T14:12:00Z" } ], "notFound": [ "message_id2" ] }, "c1"]] }