Abstract: | This specification defines a method for marking a message as a correction of the last sent message. |
Author: | Kevin Smith |
Copyright: | © 1999 - 2013 XMPP Standards Foundation. SEE LEGAL NOTICES. |
Status: | Deferred |
Type: | Standards Track |
Version: | 0.1 |
Last Updated: | 2011-11-10 |
WARNING: Consideration of this document has been Deferred by the XMPP Standards Foundation. Implementation of the protocol described herein is not recommended.
1. Introduction
2. Discovering support
3. Use Case
4. Business Rules
5. Security Considerations
6. IANA Considerations
7. XMPP Registrar Considerations
7.1. Protocol Namespaces
7.2. Service Discovery Identities
8. XML Schema
Appendices
A: Document Information
B: Author Information
C: Legal Notices
D: Relation to XMPP
E: Discussion Venue
F: Requirements Conformance
G: Notes
H: Revision History
When sending a message, people often introduce typing errors and send a follow-up message to correct them. This specification allows the sending client to flag the second message as correcting the first.
If a server implements message correction, it MUST specify the 'urn:xmpp:message-correct:0' feature in its service discovery information features as specified in Service Discovery [1] and the Entity Capabilities profile specified in Entity Capabilities [2].
<iq type='get' from='romeo@montague.net/orchard' id='info1'> <query xmlns='http://jabber.org/protocol/disco#info'/> </iq>
<iq type='get' to='romeo@montague.net/home' from='montague.net' id='info1'> <query xmlns='http://jabber.org/protocol/disco#info'> ... <feature var='urn:xmpp:message-correct:0'/> ... </query> </iq>
When a user indicates to the client that he wants to correct the most recently sent message to a contact, the client will resend the corrected message with a new id, and with the replace payload refering to the previous message by id.
<message to='juliet@capulet.net/balcony' id='bad1'> <body>But soft, what light through yonder airlock breaks?</body> </message>
<message to='juliet@capulet.net/balcony' id='good1'> <body>But soft, what light through yonder window breaks?</body> <replace id='bad1' xmlns='urn:xmpp:message-correct:0'/> </message>
The 'id' attribute is included on the replace to prevent situations where messages being routed to a different resource than the intended cause incorrect replacements.
A receiving client can choose to replace the previous message in whatever display is used for messages, or in any stored history, or can choose to display the correction in another way.
A client SHOULD alert the user that the displayed message has been edited since it was originally sent.
Clients MUST send ids on messages if they allow the user to correct messages.
To deal with multiple payloads, the sender MUST re-send the entire stanza with only the id and the corrections changed. It is expected that the receiver will then treat the new stanza as complete replacement, but such logic is ultimately the resposibility of the client.
The Sender MUST NOT include a correction for a message with non-messaging payloads. For example, a sender MUST NOT include a correction for a roster item exchange request.
The replacement message could have an entirely different meaning from the original message, so clients will need to warn users that the displayed message has been edited.
None.
Upon advancement of this specification, the XMPP Registrar [3] shall issue permanent namespaces in accordance with the process defined in Section 4 of XMPP Registrar Function [4].
The following namespaces are requested, and are thought to be unique per the XMPP Registrar's requirements:
<var> <name>urn:xmpp:message-correct:0</name> <desc>Support for message correction</desc> <doc>THIS PROTOXEP</doc> </var>
<?xml version='1.0' encoding='UTF-8'?> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema' targetNamespace='urn:xmpp:message-correct:0' xmlns='urn:xmpp:message-correct:0' elementFormDefault='qualified'> <xs:element name='replace'> <xs:complexType> <xs:simpleContent> <xs:extension base='xs:string'> <xs:attribute name='id' type='xs:string' use='required'/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:schema>
Series: XEP
Number: 0308
Publisher: XMPP Standards Foundation
Status:
Deferred
Type:
Standards Track
Version: 0.1
Last Updated: 2011-11-10
Approving Body: XMPP Council
Dependencies: XMPP Core
Supersedes: None
Superseded By: None
Short Name: NOT_YET_ASSIGNED
Source Control:
HTML
This document in other formats:
XML
PDF
Email:
kevin@kismith.co.uk
JabberID:
kevin@doomsong.co.uk
The Extensible Messaging and Presence Protocol (XMPP) is defined in the XMPP Core (RFC 6120) and XMPP IM (RFC 6121) specifications contributed by the XMPP Standards Foundation to the Internet Standards Process, which is managed by the Internet Engineering Task Force in accordance with RFC 2026. Any protocol defined in this document has been developed outside the Internet Standards Process and is to be understood as an extension to XMPP rather than as an evolution, development, or modification of XMPP itself.
The primary venue for discussion of XMPP Extension Protocols is the <standards@xmpp.org> discussion list.
Discussion on other xmpp.org discussion lists might also be appropriate; see <http://xmpp.org/about/discuss.shtml> for a complete list.
Errata can be sent to <editor@xmpp.org>.
The following requirements keywords as used in this document are to be interpreted as described in RFC 2119: "MUST", "SHALL", "REQUIRED"; "MUST NOT", "SHALL NOT"; "SHOULD", "RECOMMENDED"; "SHOULD NOT", "NOT RECOMMENDED"; "MAY", "OPTIONAL".
1. XEP-0030: Service Discovery <http://xmpp.org/extensions/xep-0030.html>.
2. XEP-0115: Entity Capabilities <http://xmpp.org/extensions/xep-0115.html>.
3. The XMPP Registrar maintains a list of reserved protocol namespaces as well as registries of parameters used in the context of XMPP extension protocols approved by the XMPP Standards Foundation. For further information, see <http://xmpp.org/registrar/>.
4. XEP-0053: XMPP Registrar Function <http://xmpp.org/extensions/xep-0053.html>.
Note: Older versions of this specification might be available at http://xmpp.org/extensions/attic/
Initial published version.
(psa)Adding discovery, as discussed as a prerequisite to acceptance with Council.
(kis)First draft.
(kis)END