1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-12-21 15:18:51 -05:00

XEP-0280: Restructure Section 8: Sending Messages

This commit is contained in:
Stefan Haun 2017-02-10 18:26:05 +01:00 committed by Sam Whited
parent 549d4fb9f4
commit 0680ac1bb9

View File

@ -314,7 +314,16 @@
</section1>
<section1 topic='Sending Messages' anchor='outbound'>
<p>When a client sends a &MESSAGE; <link url='#which-messages'>eligible for carbons delivery</link>, its sending server delivers the &MESSAGE; according to <cite>RFC 6120</cite> and <cite>RFC 6121</cite>, and delivers a forwarded copy to each Carbons-enabled resource for the matching bare JID sender, excluding the sending client. Note that this happens irrespective of whether the sending client has carbons enabled.</p>
<p>Each forwarded copy is wrapped using &xep0297;. The wrapping message SHOULD maintain the same 'type' attribute value; the 'from' attribute MUST be the Carbons-enabled user's bare JID (e.g., "localpart@domainpart"); and the 'to' attribute SHOULD be the full JID of the resource receiving the copy. The content of the wrapping message MUST contain a &lt;sent/&gt; element qualified by the namespace "urn:xmpp:carbons:2", which itself contains a &lt;forwarded/&gt; qualified by the namespace "urn:xmpp:forward:0" that contains the original &MESSAGE; stanza.</p>
<p>Each forwarded copy is wrapped using &xep0297; with the following properties:</p>
<ul>
<li>The wrapping message SHOULD maintain the same 'type' attribute value;</li>
<li>the 'from' attribute MUST be the Carbons-enabled user's bare JID (e.g., "localpart@domainpart");</li>
<li>and the 'to' attribute SHOULD be the full JID of the resource receiving the copy.</li>
<li>The content of the wrapping message MUST contain a &lt;sent/&gt; element qualified by the namespace "urn:xmpp:carbons:2", which itself contains a &lt;forwarded/&gt; qualified by the namespace "urn:xmpp:forward:0" that contains the original &MESSAGE; stanza.</li>
</ul>
<p>The sending server SHOULD NOT send a forwarded copy to the sending full JID if it is a Carbons-enabled resource.</p>
<example caption='Romeo responds to Juliet'><![CDATA[
<message xmlns='jabber:client'
from='romeo@montague.example/home'
@ -343,7 +352,6 @@
</sent>
</message>]]></example>
<p>The sending server SHOULD NOT send a forwarded copy to the sending full JID if it is a Carbons-enabled resource.</p>
</section1>
<section1 topic='Avoiding Carbons for a single message' anchor='avoiding'>