<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE rfc SYSTEM'rfc2629.dtd' []>"rfc2629-xhtml.ent"> <rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-jmap-mdn-17" number="9007" obsoletes="" updates="" submissionType="IETF" category="std"docName="draft-ietf-jmap-mdn-17"> <?rfc toc="yes"?> <?rfc symrefs="yes"?> <?rfc sortrefs="yes"?> <?rfc compact="yes"?> <?rfc subcompact="no"?> <?rfc private=""?> <?rfc topblock="yes"?> <?rfc comments="no"?>consensus="true" xml:lang="en" tocInclude="true" symRefs="true" sortRefs="true" version="3"> <!-- xml2rfc v2v3 conversion 3.5.0 --> <front> <title abbrev="JMAP MDN handling">Handling Message Disposition Notification withJMAP</title>JSON Meta Application Protocol (JMAP)</title> <seriesInfo name="RFC" value="9007"/> <author role="editor"initials="R.O."initials="R." surname="Ouazana" fullname="Raphaël Ouazana"> <organization>Linagora</organization> <address> <postal> <street>100 Terrasse Boieldieu–- Tour Franklin</street> <city>Paris - La Défense CEDEX</city> <code>92042</code> <country>France</country><region></region><region/> </postal><phone></phone><phone/> <email>rouazana@linagora.com</email> <uri>https://www.linagora.com</uri> </address> </author> <date year="2021"month="January" day="28"/>month="March"/> <area>Applications</area> <workgroup>JMAP</workgroup> <keyword>JMAP</keyword> <keyword>JSON</keyword> <keyword>email</keyword> <keyword>MDN</keyword> <abstract> <t>This document specifies a data model for handling Message Disposition Notifications(MDNs,(MDNs) (see RFC 8098) in the JSON Meta Application Protocol(JMAP,(JMAP) (see RFCs 8620 and 8621). </t> </abstract> </front> <middle> <section anchor="introduction"title="Introduction">numbered="true" toc="default"> <name>Introduction</name> <t>JMAP (<xreftarget="RFC8620"/> – JSON Meta Application Protocol)target="RFC8620" format="title"/> <xref target="RFC8620" format="default"/>) is a generic protocol for synchronising data, such as mail,calendarscalendars, 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. </t> <t>JMAP for Mail (<xreftarget="RFC8621"/> - The JSON Meta Application Protocol (JMAP) for Mail)target="RFC8621" format="title"/> <xref target="RFC8621" format="default"/>) 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. </t> <t>Message Disposition Notifications (MDNs) are defined in <xreftarget="RFC8098"/>target="RFC8098" format="default"/> and are used as"read receipts", "acknowledgements","read receipts", "acknowledgements", or"receipt notifications"."receipt notifications". </t> <t>A client can come across MDNs in different ways: </t><t> <list style="numbers"> <t>When<ol spacing="normal" type="1"><li>When receiving an email message, an MDN can be sent to the sender. This specification defines anMDN/send"MDN/send" method to cover thiscase.</t> <t>Whencase.</li> <li>When sending an email message, an MDN can be requested. This must be done with the help of a header field,and isas already specified by <xreftarget="RFC8098"/> andtarget="RFC8098" format="default"/>; the header field can already be handled by guidance in <xreftarget="RFC8621"/> this way.</t> <t>Whentarget="RFC8621" format="default"/>.</li> <li>When receiving an MDN, the MDN could be related to an existing sent message. This is already covered by <xreftarget="RFC8621"/>target="RFC8621" format="default"/> in the EmailSubmission object. A client might want to display detailed information about a received MDN. This specification defines anMDN/parse"MDN/parse" method to cover thiscase.</t> </list> </t>case.</li> </ol> <section anchor="notational-conventions"title="Notational conventions"> <t>Thenumbered="true" toc="default"> <name>Notational Conventions</name> <t> The key words"MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY","<bcp14>MUST</bcp14>", "<bcp14>MUST NOT</bcp14>", "<bcp14>REQUIRED</bcp14>", "<bcp14>SHALL</bcp14>", "<bcp14>SHALL NOT</bcp14>", "<bcp14>SHOULD</bcp14>", "<bcp14>SHOULD NOT</bcp14>", "<bcp14>RECOMMENDED</bcp14>", "<bcp14>NOT RECOMMENDED</bcp14>", "<bcp14>MAY</bcp14>", and"OPTIONAL""<bcp14>OPTIONAL</bcp14>" in this document are to be interpreted as described inBCP 14BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here. </t> <t>Type signatures,examplesexamples, and property descriptions in this document follow the conventions established insection 1.1 of<xreftarget="RFC8620"/>.target="RFC8620" section="1.1" sectionFormat="of" format="default"/>. Data types defined in the core specification are also used in this document. </t> <t>ServersMUST<bcp14>MUST</bcp14> support all properties specified for the new data types defined in this document. </t> </section> <section anchor="terminology"title="Terminology">numbered="true" toc="default"> <name>Terminology</name> <t>The same terminology is used in this document as in the core JMAP specification. </t> <t>Because keywords arecase-insensitivecase insensitive in IMAP butcase-sensitivecase sensitive in JMAP, the"$mdnsent"<tt>$mdnsent</tt> keywordMUST<bcp14>MUST</bcp14> always be used in lowercase. </t> </section> <section anchor="addition-to-the-capabilities-object"title="Additionnumbered="true" toc="default"> <name>Addition to thecapabilities object">Capabilities Object</name> <t>Capabilities are announced as part of the standard JMAP Session resource; see <xreftarget="RFC8620"/>, section 2.target="RFC8620" section="2" sectionFormat="comma" format="default"/>. This defines a new capability,"urn:ietf:params:jmap:mdn"."urn:ietf:params:jmap:mdn". </t> <t>The capability"urn:ietf:params:jmap:mdn""urn:ietf:params:jmap:mdn" being present in the"accountCapabilities""accountCapabilities" property of an account represents support for the"MDN""MDN" data type, parsing MDNs via the"MDN/parse""MDN/parse" method, and creating and sending MDN messages via the"MDN/send""MDN/send" method. Servers that include the capability in one or more"accountCapabilities""accountCapabilities" propertiesMUST<bcp14>MUST</bcp14> also include the property in the"capabilities""capabilities" property. </t> <t>The value of this"urn:ietf:params:jmap:mdn""urn:ietf:params:jmap:mdn" property is an empty object both in the account's"accountCapabilities""accountCapabilities" property and in the"capabilities""capabilities" property. </t> </section> </section> <section anchor="mdn"title="MDN">numbered="true" toc="default"> <name>MDN</name> <t>An<spanx style="strong">MDN</spanx><strong>MDN</strong> object has the following properties: </t><t> <list style="symbols"> <t>forEmailId: <spanx style="verb">Id|null</spanx><ul spacing="normal"> <li><t>forEmailId: <tt>Id|null</tt></t> <t>The Email id of the received message to which this MDN isrelative to.related. This propertyMUST NOT<bcp14>MUST NOT</bcp14> be null for"MDN/send","MDN/send" butMAY<bcp14>MAY</bcp14> be null in the response from the"MDN/parse" method.</t> <t>subject: <spanx style="verb">String|null</spanx> Subject"MDN/parse" method.</t></li> <li><t>subject: <tt>String|null</tt></t> <t>The subject used as<spanx style="verb">Subject</spanx>"Subject" header field for thisMDN.</t> <t>textBody: <spanx style="verb">String|null</spanx> Human readableMDN.</t></li> <li><t>textBody: <tt>String|null</tt></t> <t>The human-readable part of the MDN, as plaintext.</t> <t>includeOriginalMessage: <spanx style="verb">Boolean</spanx>text.</t></li> <li><t>includeOriginalMessage: <tt>Boolean</tt> (default:false). If <spanx style="verb">true</spanx>,false)</t> <t>If <tt>true</tt>, the content of the original message will appear in the third component of the multipart/report generated for the MDN. See <xreftarget="RFC8098"/>target="RFC8098" format="default"/> for details and securityconsiderations.</t> <t>reportingUA: <spanx style="verb">String|null</spanx> Nameconsiderations.</t></li> <li><t>reportingUA: <tt>String|null</tt></t> <t>The name of theMUAMail User Agent (MUA) creating this MDN. It is used to build the MDNReportreport part of the MDN. Note that a<spanx style="verb">null</spanx><tt>null</tt> value may have better privacyproperties.</t> <t>disposition: <spanx style="verb">Disposition</spanx> Objectproperties.</t></li> <li><t>disposition: <tt>Disposition</tt></t> <t>The object containing the diverse MDN dispositionoptions.</t> <t>mdnGateway: <spanx style="verb">String|null</spanx> (server-set) Nameoptions.</t></li> <li><t>mdnGateway: <tt>String|null</tt> (server-set)</t> <t>The name of the gateway orMTAMessage Transfer Agent (MTA) that translated a foreign (non-Internet) message disposition notification into thisMDN.</t> <t>originalRecipient: <spanx style="verb">String|null</spanx> (server-set) OriginalMDN.</t></li> <li><t>originalRecipient: <tt>String|null</tt> (server-set)</t> <t>The original recipient address as specified by the sender of the message for which the MDN is beingissued.</t> <t>finalRecipient: <spanx style="verb">String|null</spanx> Recipientissued.</t></li> <li><t>finalRecipient: <tt>String|null</tt></t> <t>The recipient for which the MDN is being issued. If set, it overrides the value that would be calculated by the server from the Identity defined in the"MDN/Send""MDN/send" method, unless explicitly set by theclient.</t> <t>originalMessageId: <spanx style="verb">String|null</spanx> (server-set) Message-ID (the <xref target="RFC5322"/>client.</t></li> <li><t>originalMessageId: <tt>String|null</tt> (server-set)</t> <t>The "Message-ID" headerfield, notfield <xref target="RFC5322" format="default"/> (not the JMAP id) of the message for which the MDN is beingissued.</t> <t>error: <spanx style="verb">String[]|null</spanx> (server-set) Additionalissued.</t></li> <li><t>error: <tt>String[]|null</tt> (server-set)</t> <t>Additional information in the form of text messages when the"error""error" disposition modifierappears.</t> <t>extensionFields: <spanx style="verb">String[String]|null</spanx> Objectappears.</t></li> <li><t>extensionFields: <tt>String[String]|null</tt></t> <t>The object where keys are extension-fieldnamesnames, and values are extension-field values (see <xreftarget="RFC8098"/> Section 3.3).</t> </list> </t>target="RFC8098" section="3.3" sectionFormat="comma" format="default"/>).</t></li> </ul> <t>A<spanx style="strong">Disposition</spanx><strong>Disposition</strong> object has the following properties: </t><t> <list style="symbols"> <t>actionMode: <spanx style="verb">String</spanx> This MUST<ul spacing="normal"> <li><t>actionMode: <tt>String</tt></t> <t>This <bcp14>MUST</bcp14> be one of the following strings:"manual-action"<tt>manual-action</tt> /"automatic-action"</t> <t>sendingMode: <spanx style="verb">String</spanx> This MUST<tt>automatic-action</tt></t></li> <li><t>sendingMode: <tt>String</tt></t> <t>This <bcp14>MUST</bcp14> be one of the following strings:"mdn-sent-manually"<tt>mdn-sent-manually</tt> /"mdn-sent-automatically"</t> <t>type: <spanx style="verb">String</spanx> This MUST<tt>mdn-sent-automatically</tt></t></li> <li><t>type: <tt>String</tt></t> <t>This <bcp14>MUST</bcp14> be one of the following strings:"deleted"<tt>deleted</tt> /"dispatched"<tt>dispatched</tt> /"displayed"<tt>displayed</tt> /"processed"</t> </list> </t><tt>processed</tt></t></li> </ul> <t>See <xreftarget="RFC8098"/>target="RFC8098" format="default"/> for the exact meaning of these different fields. These fields are defined as case insensitive in <xreftarget="RFC8098"/>target="RFC8098" format="default"/> but are case sensitive in this RFC andMUST<bcp14>MUST</bcp14> be converted to lowercase by"MDN/parse"."MDN/parse". </t> <section anchor="mdnsend"title="MDN/send">numbered="true" toc="default"> <name>MDN/send</name> <t>TheMDN/send"MDN/send" method sendsan <xref target="RFC5322"/>a message in the style of <xref target="RFC5322" format="default"/> from an MDN object. When calling thismethodmethod, the"using""using" property of the Request objectMUST<bcp14>MUST</bcp14> contain the capabilities"urn:ietf:params:jmap:mdn""urn:ietf:params:jmap:mdn" and"urn:ietf:params:jmap:mail";"urn:ietf:params:jmap:mail"; the latter because of the implicit call toEmail/set"Email/set" and the use ofIdentities,Identity objects, which is described below. The method takes the following arguments: </t><t> <list style="symbols"> <t>accountId: <spanx style="verb">Id</spanx> The<ul spacing="normal"> <li><t>accountId: <tt>Id</tt></t> <t>The id of the account touse.</t> <t>identityId: <spanx style="verb">Id</spanx> Theuse.</t></li> <li><t>identityId: <tt>Id</tt></t> <t>The id of the Identity to associate with these MDNs. The server will use this identity to define the sender of the MDNs and to set thefinalRecipient field.</t> <t>send: <spanx style="verb">Id[MDN]</spanx> A"finalRecipient" field.</t></li> <li><t>send: <tt>Id[MDN]</tt></t> <t>A map of the creation id (client specified) to MDNobjects.</t> <t>onSuccessUpdateEmail: <spanx style="verb">Id[PatchObject]|null</spanx> Aobjects.</t></li> <li><t>onSuccessUpdateEmail: <tt>Id[PatchObject]|null</tt></t> <t>A map of the id to an object containing properties to update on the Email object referenced by the"MDN/send""MDN/send" if the sending succeeds. This will always be a backward reference to the creation id (see the example below inSection 3.1).</t> </list> </t><xref target="sending-an-mdn-for-a-received-email-message" format="default"/>).</t></li> </ul> <t>The response has the following arguments: </t><t> <list style="symbols"> <t>accountId: <spanx style="verb">Id</spanx> The<ul spacing="normal"> <li><t>accountId: <tt>Id</tt></t> <t>The id of the account used for thecall.</t> <t>sent: <spanx style="verb">Id[MDN]|null</spanx> Acall.</t></li> <li><t>sent: <tt>Id[MDN]|null</tt></t> <t>A map of the creation id to an MDN containing any properties that were not set by the client. This includes any properties that were omitted by the client and thus set to a default by the server. This argument is null if no MDN objects were successfullysent.</t> <t>notSent: <spanx style="verb">Id[SetError]|null</spanx> Asent.</t></li> <li><t>notSent: <tt>Id[SetError]|null</tt></t> <t>A map of the creation id to a SetError object for each record that failed to besent,sent or null if allsuccessful.</t> </list> </t>successful.</t></li> </ul> <t>In this context, the existing SetError types defined in <xreftarget="RFC8620"/>target="RFC8620" format="default"/> and <xreftarget="RFC8621"/>target="RFC8621" format="default"/> are interpreted as follows: </t><t> <list style="symbols"> <t>notFound:<dl spacing="normal"> <dt>notFound:</dt><dd> The referenceEmail id"forEmailId" cannot befound,found or has no valid"Disposition-Notification-To""Disposition-Notification-To" headerfield.</t> <t>forbidden: MDN/sendfield.</dd> <dt>forbidden:</dt><dd> "MDN/send" would violate anACLAccess Control List (ACL) or other permissionspolicy.</t> <t>forbiddenFrom:policy.</dd> <dt>forbiddenFrom:</dt><dd> The user is not allowed to use the givenfinalRecipient property.</t> <t>overQuota: MDN/send"finalRecipient" property.</dd> <dt>overQuota:</dt><dd> "MDN/send" would exceed a server-defined limit on the number or total size of sent MDNs. It could include limitations on sentmessages.</t> <t>tooLarge: MDN/sendmessages.</dd> <dt>tooLarge:</dt><dd> "MDN/send" would result in an MDN that exceeds a server-defined limit for the maximum size of anMDN,MDN or moregenerallygenerally, on emailmessage.</t> <t>rateLimit:message.</dd> <dt>rateLimit:</dt><dd> Too many MDNs or email messages have been created recently, and a server-defined rate limit has been reached. It may work if tried againlater.</t> <t>invalidProperties:later.</dd> <dt>invalidProperties:</dt><dd> The record given is invalid in someway.</t> </list> </t>way.</dd> </dl> <t>The following is a new SetError: </t><t> <list style="symbols"> <t>mdnAlreadySent:<dl spacing="normal"> <dt>mdnAlreadySent:</dt><dd> The message has the<spanx style="verb">$mdnsent</spanx><tt>$mdnsent</tt> keyword alreadyset.</t> </list> </t>set.</dd> </dl> <t>If theaccountId"accountId" oridentityId"identityId" given cannot be found, the method call is rejected with an<spanx style="verb">invalidArguments</spanx><tt>invalidArguments</tt> error. </t> <t>The clientMUST NOT<bcp14>MUST NOT</bcp14> issue anMDN/send"MDN/send" request if the message has the<spanx style="verb">$mdnsent</spanx><tt>$mdnsent</tt> keyword set. </t> <t>When sending the MDN, the server is in charge of generating the"originalRecipient""originalRecipient" and"originalMessageId""originalMessageId" fields according tothe [RFC8098] specification. "finalRecipient"<xref target="RFC8098" format="default"/>. "finalRecipient" will also generally be generated by the server based on the provided identity, but if specified by the client and allowed (seeSection 5)<xref target="security-considerations" format="default"/>), the server will use theclient providedclient-provided value. </t> <t>The client is expected to explicitly update each"Email""Email" for which an"MDN/send""MDN/send" has been invoked in order to set the"$mdnsent"<tt>$mdnsent</tt> keyword on these messages. To ensure that, the serverMUST<bcp14>MUST</bcp14> reject an"MDN/send" which"MDN/send" that does not result in setting the keyword"$mdnsent". Thus<tt>$mdnsent</tt>. Thus, the serverMUST<bcp14>MUST</bcp14> check that the"onSuccessUpdateEmail""onSuccessUpdateEmail" property of the method is correctly set to update this keyword. </t> </section> <section anchor="mdnparse"title="MDN/parse">numbered="true" toc="default"> <name>MDN/parse</name> <t>This method allows a client to parse blobs as<xref target="RFC5322"/>messages in the style of <xref target="RFC5322" format="default"/> to get MDN objects. This can be used to parse and get detailed information about blobs referenced in the"mdnBlobIds""mdnBlobIds" of the EmailSubmissionobject,object or any email message the client could expect to be an MDN. </t> <t>The"forEmailId""forEmailId" property can be null or missing if the"originalMessageId""originalMessageId" property is missing or does not refer to an existingmessage,message or if the server cannot efficiently calculate the related message (for example, if several messages get the same"Message-Id""Message-ID" header field). </t> <t>TheMDN/parse"MDN/parse" method takes the following arguments: </t><t> <list style="symbols"> <t>accountId: <spanx style="verb">Id</spanx> The<ul spacing="normal"> <li><t>accountId: <tt>Id</tt></t> <t>The id of the account touse.</t> <t>blobIds: <spanx style="verb">Id[]</spanx> Theuse.</t></li> <li><t>blobIds: <tt>Id[]</tt></t> <t>The ids of the blobs toparse.</t> </list> </t>parse.</t></li> </ul> <t>The response has the following arguments: </t><t> <list style="symbols"> <t>accountId: <spanx style="verb">Id</spanx> The<ul spacing="normal"> <li><t>accountId: <tt>Id</tt></t> <t>The id of the account used for thecall.</t> <t>parsed: <spanx style="verb">Id[MDN]|null</spanx> Acall.</t></li> <li><t>parsed: <tt>Id[MDN]|null</tt></t> <t>A map of the blob id to a parsed MDN representation for each successfully parsedblob,blob or null ifnone.</t> <t>notParsable: <spanx style="verb">Id[]|null</spanx> Anone.</t></li> <li><t>notParsable: <tt>Id[]|null</tt></t> <t>A list of ids given thatcorrespondedcorresponds to blobs that could not be parsed asMDNs,MDNs or null ifnone.</t> <t>notFound: <spanx style="verb">Id[]|null</spanx> Anone.</t></li> <li><t>notFound: <tt>Id[]|null</tt></t> <t>A list of blob ids given that could not befound,found or null ifnone.</t> </list> </t>none.</t></li> </ul> <t>The following additional errors may be returned instead of theMDN/parse"MDN/parse" response: </t><t> <list style="symbols"> <t>requestTooLarge: The<dl spacing="normal"> <dt>requestTooLarge:</dt><dd>The number of ids requested by the client exceeds the maximum number the server is willing to process in a single methodcall.</t> <t>invalidArguments:call.</dd> <dt>invalidArguments:</dt><dd> If theaccountIdgiven "accountId" cannot be found, the MDN parsing is rejected with an<spanx style="verb">invalidArguments</spanx> error.</t> </list> </t><tt>invalidArguments</tt> error.</dd> </dl> </section> </section> <section anchor="samples"title="Samples">numbered="true" toc="default"> <name>Samples</name> <section anchor="sending-an-mdn-for-a-received-email-message"title="Sendingnumbered="true" toc="default"> <name>Sending an MDN for areceived email message">Received Email Message</name> <t>A client can use the following request to send an MDN back to the sender: </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "MDN/send", { "accountId": "ue150411c", "identityId": "I64588216", "send": { "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 noguarantyguarantee it has been read or understood.", "reportingUA": "joes-pc.cs.example.com; Foomail 97.1", "disposition": { "actionMode": "manual-action", "sendingMode": "mdn-sent-manually", "type": "displayed" }, "extension": { "EXTENSION-EXAMPLE": "example.com" } } }, "onSuccessUpdateEmail": { "#k1546": { "keywords/$mdnsent": true } } }, "0" ]]</artwork></figure>]]></artwork> <t>If the email id matches an existing email message without the<spanx style="verb">$mdnsent</spanx><tt>$mdnsent</tt> keyword, the server can answer: </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "MDN/send", { "accountId": "ue150411c", "sent": { "k1546": { "finalRecipient": "rfc822; john@example.com", "originalMessageId":"<199509192301.23456@example.org>""<199509192301.23456@example.org>" } } }, "0" ], [ "Email/set", { "accountId": "ue150411c", "oldState": "23", "newState": "42", "updated": { "Md45b47b4877521042cec0938": {} } }, "0" ]]</artwork></figure>]]></artwork> <t>If the<spanx style="verb">$mdnsent</spanx><tt>$mdnsent</tt> keyword has already been set, the server can answer an error: </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "MDN/send", { "accountId": "ue150411c", "notSent": { "k1546": { "type": "mdnAlreadySent", "description" : "$mdnsent keyword is already present" } } }, "0" ]]</artwork></figure>]]></artwork> </section> <section anchor="asking-for-mdn-when-sending-an-email-message"title="Askingnumbered="true" toc="default"> <name>Asking for an MDNwhen sendingWhen Sending anemail message">Email Message</name> <t>This is done with the "Email/set" "create" method of <xreftarget="RFC8621"/> "Email/set" "create" method.target="RFC8621" format="default"/>. </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "Email/set", { "accountId": "ue150411c", "create": { "k2657": { "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:asText": "joe@example.com", "subject": "World domination", ... } } }, "0" ]]</artwork></figure>]]></artwork> <t>Note the specified<spanx style="verb">Disposition-Notification-To</spanx>"Disposition-Notification-To" header field indicating where to send the MDNback(usually the sender of the message). </t> </section> <section anchor="parsing-a-received-mdn"title="Parsingnumbered="true" toc="default"> <name>Parsing areceived MDN">Received MDN</name> <t>The client issues a parse request: </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "MDN/parse", { "accountId": "ue150411c", "blobIds": [ "0f9f65ab-dc7b-4146-850f-6e4881093965" ] }, "0" ]]</artwork></figure>]]></artwork> <t>The server responds: </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "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 noguarantyguarantee it has been read or understood.", "reportingUA": "joes-pc.cs.example.com; Foomail 97.1", "disposition": { "actionMode": "manual-action", "sendingMode": "mdn-sent-manually", "type": "displayed" }, "finalRecipient": "rfc822; john@example.com", "originalMessageId":"<199509192301.23456@example.org>""<199509192301.23456@example.org>" } } }, "0" ]]</artwork></figure>]]></artwork> <t>In the caseofthat a blob id is notfound blobId,found, the server would respond: </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "MDN/parse", { "accountId": "ue150411c", "notFound": [ "0f9f65ab-dc7b-4146-850f-6e4881093965" ] }, "0" ]]</artwork></figure>]]></artwork> <t>If theblobIdblob id has been found but is not parsable, the server would respond: </t><figure align="center"><artwork align="center"><artwork align="center" name="" type="" alt=""><![CDATA[ [[ "MDN/parse", { "accountId": "ue150411c", "notParsable": [ "0f9f65ab-dc7b-4146-850f-6e4881093965" ] }, "0" ]]</artwork></figure>]]></artwork> </section> </section> <section anchor="iana-considerations"title="IANA Considerations">numbered="true" toc="default"> <name>IANA Considerations</name> <section anchor="jmap-capability-registration-for-mdn"title="JMAPnumbered="true" toc="default"> <name>JMAP Capability Registration for"mdn""> <t>IANA will register"mdn"</name> <t>This section registers the"mdn""mdn" JMAP Capability in the "JMAP Capabilities" registry as follows: </t><t>Capability Name: <spanx style="verb">urn:ietf:params:jmap:mdn</spanx> </t> <t>Specification document: this document </t> <t>Intended use:<dl spacing="compact"> <dt>Capability Name:</dt><dd> <tt>urn:ietf:params:jmap:mdn</tt> </dd> <dt>Intended Use:</dt><dd> common</t> <t>Change Controller:</dd> <dt>Change Controller:</dt><dd> IETF</t> <t>Security</dd> <dt>Security andprivacy considerations: thisPrivacy Considerations:</dt><dd> This document,section 5. </t><xref target="security-considerations" format="default"/>. </dd> <dt>Reference:</dt><dd> This document </dd> </dl> </section> <section anchor="jmap-error-codes-registry"title="JMAPnumbered="true" toc="default"> <name>JMAP Error CodesRegistry"> <t>This section registersRegistration for "mdnAlreadySent"</name> <t>IANA has registered one new error code in the"JMAP"JMAP ErrorCodes"Codes" registry, as defined in <xreftarget="RFC8620"/>.target="RFC8620" format="default"/>. </t><t>JMAP<dl spacing="compact"> <dt>JMAP ErrorCode:Code:</dt><dd> mdnAlreadySent</t> <t>Intended use:</dd> <dt>Intended Use:</dt><dd> common</t> <t>Change controller:</dd> <dt>Change Controller:</dt><dd> IETF</t> <t>Reference: This document, Section 2.1 </t> <t>Description:</dd> <dt>Description:</dt><dd> The message has the<spanx style="verb">$mdnsent</spanx><tt>$mdnsent</tt> keyword already set. The clientMUST NOT<bcp14>MUST NOT</bcp14> try again to send an MDN for this message.</t></dd> <dt>Reference:</dt><dd> This document, <xref target="mdnsend" format="default"/> </dd> </dl> </section> </section> <section anchor="security-considerations"title="Security considerations">numbered="true" toc="default"> <name>Security Considerations</name> <t>The same considerations regarding MDN (see <xreftarget="RFC8098"/>target="RFC8098" format="default"/> and <xreftarget="RFC3503"/>)target="RFC3503" format="default"/>) apply to this document. </t> <t>In order to reinforce trust regarding the relation between the user sending an email message and the identity of this user, the serverSHOULD<bcp14>SHOULD</bcp14> validate in conformance to the provided Identity that the user is permitted to use thefinalRecipient"finalRecipient" value and return aforbiddenFrom<tt>forbiddenFrom</tt> error if not. </t> </section> </middle> <back><references title="Normative References"> <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"?> <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.3503.xml"?> <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5322.xml"?> <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8098.xml"?> <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"?> <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8620.xml"?> <?rfc include="https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8621.xml"?><references> <name>Normative References</name> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.3503.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.5322.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8098.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8620.xml"/> <xi:include href="https://xml2rfc.ietf.org/public/rfc/bibxml/reference.RFC.8621.xml"/> </references> </back> </rfc>