A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.rfc-editor.org/rfc/rfc9007.xml below:

Introduction JMAP (" " ) 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 (" " ) 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 and are used as "read receipts", "acknowledgements", or "receipt notifications". A client can come across MDNs in different ways:
  1. When receiving an email message, an MDN can be sent to the sender. This specification defines an "MDN/send" method to cover this case.
  2. When sending an email message, an MDN can be requested. This must be done with the help of a header field, as already specified by ; the header field can already be handled by guidance in .
  3. When receiving an MDN, the MDN could be related to an existing sent message. This is already covered by in the EmailSubmission object. A client might want to display detailed information about a received MDN. This specification defines an "MDN/parse" method to cover this case.
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 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 . 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. 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. Addition to the Capabilities Object Capabilities are announced as part of the standard JMAP Session resource; see . This defines a new capability, "urn:ietf:params:jmap:mdn". The capability "urn:ietf:params:jmap:mdn" being present in the "accountCapabilities" property of an account represents support for the "MDN" data type, parsing MDNs via the "MDN/parse" method, and creating and sending MDN messages via the "MDN/send" method. Servers that include the capability in one or more "accountCapabilities" properties MUST also include the property in the "capabilities" property. The value of this "urn:ietf:params:jmap:mdn" property is an empty object both in the account's "accountCapabilities" property and in the "capabilities" property. MDN An MDN object has the following properties: A Disposition object has the following properties: See for the exact meaning of these different fields. These fields are defined as case insensitive in but are case sensitive in this RFC and MUST be converted to lowercase by "MDN/parse". MDN/send The "MDN/send" method sends a message in the style of from an MDN object. When calling this method, the "using" property of the Request object MUST contain the capabilities "urn:ietf:params:jmap:mdn" and "urn:ietf:params:jmap:mail"; the latter because of the implicit call to "Email/set" and the use of Identity objects, which is described below. The method takes the following arguments: The response has the following arguments: In this context, the existing SetError types defined in and 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 "finalRecipient" 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.
invalidProperties:
The record given is invalid in some way.
The following is a new SetError:
mdnAlreadySent:
The message has the $mdnsent keyword 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 "originalRecipient" and "originalMessageId" fields according to . "finalRecipient" will also generally be generated by the server based on the provided identity, but if specified by the client and allowed (see ), the server will use the client-provided value. 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 "onSuccessUpdateEmail" property of the method is correctly set to update this keyword. MDN/parse This method allows a client to parse blobs as messages in the style of 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 "originalMessageId" property is missing or does not refer to an existing message or if the server cannot efficiently calculate the related message (for example, if several messages get the same "Message-ID" header field). 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:
requestTooLarge:
The number of ids requested by the client exceeds the maximum number the server is willing to process in a single method call.
invalidArguments:
If the given "accountId" cannot be found, the MDN parsing is rejected with an invalidArguments error.
Samples Sending an MDN for a Received Email Message A client can use the following request to send an MDN back to the sender: [[ "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 no guarantee 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" ]] If the email id matches an existing email message without the $mdnsent keyword, the server can answer: [[ "MDN/send", { "accountId": "ue150411c", "sent": { "k1546": { "finalRecipient": "rfc822; john@example.com", "originalMessageId": "<199509192301.23456@example.org>" } } }, "0" ], [ "Email/set", { "accountId": "ue150411c", "oldState": "23", "newState": "42", "updated": { "Md45b47b4877521042cec0938": {} } }, "0" ]] If the $mdnsent keyword has already been set, the server can answer an error: [[ "MDN/send", { "accountId": "ue150411c", "notSent": { "k1546": { "type": "mdnAlreadySent", "description" : "$mdnsent keyword is already present" } } }, "0" ]] Asking for an MDN When Sending an Email Message This is done with the "Email/set" "create" method of . [[ "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" ]] Note the specified "Disposition-Notification-To" header field indicating where to send the MDN (usually the sender of the message). Parsing a Received MDN 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 guarantee 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>" } } }, "0" ]] In the case that a blob id is not found, the server would respond: [[ "MDN/parse", { "accountId": "ue150411c", "notFound": [ "0f9f65ab-dc7b-4146-850f-6e4881093965" ] }, "0" ]] If the blob id has been found but is not parsable, the server would respond: [[ "MDN/parse", { "accountId": "ue150411c", "notParsable": [ "0f9f65ab-dc7b-4146-850f-6e4881093965" ] }, "0" ]] IANA Considerations JMAP Capability Registration for "mdn" This section registers the "mdn" JMAP Capability in the "JMAP Capabilities" registry as follows:
Capability Name:
urn:ietf:params:jmap:mdn
Intended Use:
common
Change Controller:
IETF
Security and Privacy Considerations:
This document, .
Reference:
This document
JMAP Error Codes Registration for "mdnAlreadySent" IANA has registered one new error code in the "JMAP Error Codes" registry, as defined in .
JMAP Error Code:
mdnAlreadySent
Intended Use:
common
Change Controller:
IETF
Description:
The message has the $mdnsent keyword already set. The client MUST NOT try again to send an MDN for this message.
Reference:
This document,
Security Considerations The same considerations regarding MDN (see and ) 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 "finalRecipient" value and return a forbiddenFrom error if not.

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4