RFC 9007: Handling Message Disposition Notification with the JSON Meta Application Protocol (JMAP)
- R. Ouazana, Ed.
Abstract
This document specifies a data model for handling Message Disposition Notifications (MDNs) (see RFC 8098) in the JSON Meta Application Protocol (JMAP) (see RFCs 8620 and 8621).¶
Status of This Memo
This is an Internet Standards Track document.¶
This document is a product of the Internet Engineering Task Force (IETF). It represents the consensus of the IETF community. It has received public review and has been approved for publication by the Internet Engineering Steering Group (IESG). Further information on Internet Standards is available in Section 2 of RFC 7841.¶
Information about the current status of this document, any
errata, and how to provide feedback on it may be obtained at
https://
Copyright Notice
Copyright (c) 2021 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://
1. Introduction
JMAP ("The JSON Meta Application Protocol (JMAP)" [RFC8620]) 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 it provides a consistent interface to different data types.¶
JMAP for Mail ("The JSON Meta Application Protocol (JMAP) for Mail" [RFC8621]) specifies a data model for synchronising email data with a server using JMAP. Clients can use this to efficiently search, access, organise, and send messages.¶
Message Disposition Notifications (MDNs) are defined in [RFC8098] and are used as "read receipts", "acknowledgemen
A client can come across MDNs in different ways:¶
1.1. Notational Conventions
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.¶
1.2. Terminology
The same terminology is used in this document as in the core JMAP specification.¶
Because keywords are case insensitive in IMAP but case sensitive in JMAP, the $mdnsent keyword MUST always be used in lowercase.¶
1.3. Addition to the Capabilities Object
Capabilities are announced as part of the standard JMAP Session resource; see [RFC8620], Section 2. This defines a new capability, "urn
The capability "urn
The value of this "urn
2. MDN
An MDN object has the following properties:¶
A Disposition object has the following properties:¶
See [RFC8098] for the exact meaning of these different fields. These fields are defined as case insensitive in [RFC8098] but are case sensitive in this RFC and MUST be converted to lowercase by "MDN/parse".¶
2.1. MDN/send
The "MDN/send" method sends a message in the style of [RFC5322] from an MDN object. When calling this method, the "using" property of the Request object MUST contain the capabilities "urn
The response has the following arguments:¶
In this context, the existing SetError types defined in [RFC8620] and [RFC8621] are interpreted as follows:¶
- notFound:
- The reference "forEmailId" cannot be found or has no valid "Disposition
-Notification -To" header field.¶ - forbidden:
- "MDN/send" would violate an Access Control List (ACL) or other permissions policy.¶
- forbiddenFrom:
- The user is not allowed to use the given "final
Recipient" property.¶ - overQuota:
- "MDN/send" would exceed a server-defined limit on the number or total size of sent MDNs. It could include limitations on sent messages.¶
- tooLarge:
- "MDN/send" would result in an MDN that exceeds a server-defined limit for the maximum size of an MDN or more generally, on email message.¶
- rateLimit:
- Too many MDNs or email messages have been created recently, and a server-defined rate limit has been reached. It may work if tried again later.¶
- invalid
Properties : - The record given is invalid in some way.¶
The following is a new SetError:¶
- mdnAlreadySent:
- The message has the
$mdnsentkeyword already set.¶
If the "accountId" or "identityId" given cannot be found, the method call is rejected with an invalidArguments error.¶
The client MUST NOT issue an "MDN/send" request if the message has the $mdnsent keyword set.¶
When sending the MDN, the server is in charge of generating the "original
The client is expected to explicitly update each "Email" for which an "MDN/send" has been invoked in order to set the $mdnsent keyword on these messages. To ensure that, the server MUST reject an "MDN/send" that does not result in setting the keyword $mdnsent. Thus, the server MUST check that the "on
2.2. MDN/parse
This method allows a client to parse blobs as messages in the style of [RFC5322] 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 message the client could expect to be an MDN.¶
The "forEmailId" property can be null or missing if the "original
The "MDN/parse" method takes the following arguments:¶
The response has the following arguments:¶
The following additional errors may be returned instead of the "MDN/parse" response:¶
3. Samples
3.1. Sending an MDN for a Received Email Message
A client can use the following request to send an MDN back to the sender:¶
If the email id matches an existing email message without the $mdnsent keyword, the server can answer:¶
If the $mdnsent keyword has already been set, the server can answer an error:¶
3.2. Asking for an MDN When Sending an Email Message
This is done with the "Email/set" "create" method of [RFC8621].¶
Note the specified "Disposition
4. IANA Considerations
4.1. JMAP Capability Registration for "mdn"
This section registers the "mdn" JMAP Capability in the "JMAP Capabilities" registry as follows:¶
4.2. JMAP Error Codes Registration for "mdnAlreadySent"
IANA has registered one new error code in the "JMAP Error Codes" registry, as defined in [RFC8620].¶
5. Security Considerations
The same considerations regarding MDN (see [RFC8098] and [RFC3503]) apply to this document.¶
In order to reinforce trust regarding the relation between the user sending an email message and the identity of this user, the server SHOULD validate in conformance to the provided Identity that the user is permitted to use the "finalforbiddenFrom error if not.¶
6. Normative References
- [RFC2119]
-
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10
.17487 , , <https:///RFC2119 www >..rfc -editor .org /info /rfc2119 - [RFC3503]
-
Melnikov, A., "Message Disposition Notification (MDN) profile for Internet Message Access Protocol (IMAP)", RFC 3503, DOI 10
.17487 , , <https:///RFC3503 www >..rfc -editor .org /info /rfc3503 - [RFC5322]
-
Resnick, P., Ed., "Internet Message Format", RFC 5322, DOI 10
.17487 , , <https:///RFC5322 www >..rfc -editor .org /info /rfc5322 - [RFC8098]
-
Hansen, T., Ed. and A. Melnikov, Ed., "Message Disposition Notification", STD 85, RFC 8098, DOI 10
.17487 , , <https:///RFC8098 www >..rfc -editor .org /info /rfc8098 - [RFC8174]
-
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10
.17487 , , <https:///RFC8174 www >..rfc -editor .org /info /rfc8174 - [RFC8620]
-
Jenkins, N. and C. Newman, "The JSON Meta Application Protocol (JMAP)", RFC 8620, DOI 10
.17487 , , <https:///RFC8620 www >..rfc -editor .org /info /rfc8620 - [RFC8621]
-
Jenkins, N. and C. Newman, "The JSON Meta Application Protocol (JMAP) for Mail", RFC 8621, DOI 10
.17487 , , <https:///RFC8621 www >..rfc -editor .org /info /rfc8621