mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
XEP-0280: Restructure Section 7: Receiving Messages
This commit is contained in:
parent
a74b45dae8
commit
5e93c5b665
11
xep-0280.xml
11
xep-0280.xml
@ -273,7 +273,15 @@
|
||||
|
||||
<section1 topic='Receiving Messages' anchor='inbound'>
|
||||
<p>When the server receives a &MESSAGE; <link url='#which-messages'>eligible for carbons delivery</link> addressed to a client JID (either bare or full), it delivers the &MESSAGE; according to <cite>RFC 6121</cite> § 8.5.3, and then delivers a forwarded copy to each Carbons-enabled resource for the matching bare JID recipient that did not receive it under the RFC 6121 delivery rules.</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 MUST be the full JID of the resource receiving the copy. The content of the wrapping message MUST contain a <received/> element qualified by the namespace "urn:xmpp:carbons:2", which itself contains a <forwarded/> element qualified by the namespace "urn:xmpp:forward:0" that contains the original &MESSAGE;.</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 MUST be the full JID of the resource receiving the copy.</li>
|
||||
<li>The content of the wrapping message MUST contain a <received/> element qualified by the namespace "urn:xmpp:carbons:2", which itself contains a <forwarded/> element qualified by the namespace "urn:xmpp:forward:0" that contains the original &MESSAGE;.</li>
|
||||
</ul>
|
||||
|
||||
<p>The receiving server MUST NOT send a forwarded copy to the client(s) the original &MESSAGE; stanza was addressed to, as these recipients receive the original &MESSAGE; stanza.</p>
|
||||
|
||||
<example caption='Juliet sends Romeo a directed message'><![CDATA[
|
||||
<message xmlns='jabber:client'
|
||||
@ -303,7 +311,6 @@
|
||||
</message>
|
||||
]]></example>
|
||||
|
||||
<p>The receiving server MUST NOT send a forwarded copy to the client(s) the original &MESSAGE; stanza was addressed to, as these recipients receive the original &MESSAGE; stanza.</p>
|
||||
</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>
|
||||
|
Loading…
Reference in New Issue
Block a user