JMAP | R. Ouazana, Ed. |
Internet-Draft | Linagora |
Intended status: Standards Track | November 20, 2019 |
Expires: May 23, 2020 |
Handling Message Disposition Notification with JMAP
draft-ietf-jmap-mdn-03
This document specifies a data model for handling [RFC8098] MDN messages with a server using JMAP.
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
This Internet-Draft will expire on May 23, 2020.
Copyright (c) 2019 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License.
JMAP ([RFC8620] – JSON Meta Application Protocol) is a generic protocol for synchronising data, such as mail, calendars or contacts, between a client and a server. It is optimised for mobile and web environments, and aims to provide a consistent interface to different data types.
MDN are defined in [RFC8098] and are used as "read receipts", "acknowledgements", or "receipt notifications".
A client can have to deal with MDN in different ways:
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.
Type signatures, examples and property descriptions in this document follow the conventions established in section 1.1 of [RFC8620]. Data types defined in the core specification are also used in this document.
Servers MUST support all properties specified for the new data types defined in this document.
The same terminology is used in this document as in the core JMAP specification.
The capabilities object is returned as part of the standard JMAP Session object; see the JMAP spec. Servers supporting this specification MUST add a property called urn:ietf:params:jmap:mdn to the capabilities object.
An MDN object has the following properties:
A Disposition object has the following properties:
See [RFC8098] for the exact meaning of these different fields.
Standard “/set” method as described in [RFC8620] where only the create parameter is supported.
The MDN/set method generates and sends an [RFC5322] message from an MDN object.
The client SHOULD NOT issue a MDN/set request if the message has the $MDNSent keyword set. In this case, the server MUST reject the submission with a standard alreadyExists SetError.
When sending the MDN, the server is in charge of generating the originalRecipient, finalRecipient and originalMessageID fields accordingly to the [RFC8098] specification.
For each forEmailId whose MDN where sent, the server MUST add a $MDNSent keyword to the email. See [RFC3503] for more details.
This method allows a client to parse blobs as [RFC5322] messages to get MDN objects. This can be used to parse and get detailed information about blobs referenced in the mdnBlobIds of the EmailSubmission object, or any email the client could expect to be an MDN.
The forEmailId property can be null or missing if the originalMessageID property is missing or not referencing an existing email.
The Email/parse method takes the following arguments:
The response has the following arguments:
A client can use the following request to send an MDN back to the sender:
[[ "MDN/set", { "accountId": "ue150411c", "create": { "k1546": { "forEmailId": "Md45b47b4877521042cec0938", "subject": "Read receipt for: World domination", "textBody": "This receipt shows that the email has been displayed on your recipient's computer. There is no guaranty it has been read or understood.", "reportingUA": "linagora.com; OpenPaaS", "disposition": { "actionMode": "manual-action", "sendingMode": "MDN-sent-manually", "type": "displayed" } } } }, "0" ]]
If the email id matches an existing email without the $MDNSent keyword, the server can answer:
[[ "MDN/set", { "accountId": "ue150411c", "oldState": "012421s6-8nrq-4ps4-n0p4-9330r951ns21", "newState": "355421f6-8aed-4cf4-a0c4-7377e951af36", "created": { "k1546": { "finalRecipient": "rfc822; john@example.com", "originalMessageID": "<1521557867.2614.0.camel@apache.org>" } } }, "0" ],
This is done with the [RFC8621] "Email/set" create method.
[[ "Email/set", { "accountId": "ue150411c", "create": { "k1546": { "mailboxIds": { "2ea1ca41b38e": true }, "keywords": { "$seen": true, "$draft": true }, "from": [{ "name": "Joe Bloggs", "email": "joe@example.com" }], "to": [{ "name": "John", "email": "john@example.com" }], "header:Disposition-Notification-To": "joe@example.com", "subject": "World domination", ... } } }, "0" ]]
Note the specified Disposition-Notification-To header indicating where to send MDN back (usually the sender of the email).
The client issues a parse request:
[[ "MDN/parse", { "accountId": "ue150411c", "blobIds: [ "0f9f65ab-dc7b-4146-850f-6e4881093965" ] }, "0" ]]
The server responds:
[[ "MDN/parse", { "accountId": "ue150411c", "parsed": { "0f9f65ab-dc7b-4146-850f-6e4881093965": { "forEmailId": "Md45b47b4877521042cec0938", "subject": "Read receipt for: World domination", "textBody": "This receipt shows that the email has been displayed on your recipient's computer. There is no guaranty it has been read or understood.", "reportingUA": "linagora.com; OpenPaaS", "disposition": { "actionMode": "manual-action", "sendingMode": "MDN-sent-manually", "type": "displayed" } "finalRecipient": "rfc822; john@example.com", "originalMessageID": "<1521557867.2614.0.camel@apache.org>" } } }, "0" ]]
IANA will register the "mdn" JMAP Capability as follows:
Capability Name: urn:ietf:params:jmap:mdn
Specification document: this document
Intended use: common
Change Controller: IETF
Security and privacy considerations: this document, section 5.
The same considerations regarding MDN (see [RFC8098] and [RFC3503]) apply to this document.
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. |
[RFC3503] | Melnikov, A., "Message Disposition Notification (MDN) profile for Internet Message Access Protocol (IMAP)", RFC 3503, DOI 10.17487/RFC3503, March 2003. |
[RFC5322] | Resnick, P., "Internet Message Format", RFC 5322, DOI 10.17487/RFC5322, October 2008. |
[RFC8098] | Hansen, T. and A. Melnikov, "Message Disposition Notification", STD 85, RFC 8098, DOI 10.17487/RFC8098, February 2017. |
[RFC8620] | Jenkins, N. and C. Newman, "The JSON Meta Application Protocol (JMAP)", RFC 8620, DOI 10.17487/RFC8620, July 2019. |
[RFC8621] | Jenkins, N. and C. Newman, "The JSON Meta Application Protocol (JMAP) for Mail", RFC 8621, DOI 10.17487/RFC8621, August 2019. |
[RFC8174] | Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017. |