[ https://issues.apache.org/jira/browse/JAMES-3368?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benoit Tellier updated JAMES-3368: ---------------------------------- Parent: JAMES-2884 Issue Type: Sub-task (was: Improvement) > Email/get 1. Metadata > --------------------- > > Key: JAMES-3368 > URL: https://issues.apache.org/jira/browse/JAMES-3368 > Project: James Server > Issue Type: Sub-task > Reporter: Nguyễn Việt Đức > Priority: Major > > # 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 > {code:java} > { > "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"]] > } > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org