1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 08:45:04 -05:00

Address various issues mentioned in xsf@

This commit is contained in:
Kevin Smith 2018-03-29 08:31:45 +01:00
parent e3560d71e6
commit ac179689c5

View File

@ -24,6 +24,12 @@
<supersededby/> <supersededby/>
<shortname>IM-NG</shortname> <shortname>IM-NG</shortname>
&ksmith; &ksmith;
<revision>
<version>0.0.2</version>
<date>2018-03-29</date>
<initials>kis</initials>
<remark><p>Fix various slips, mention reflection.</p></remark>
</revision>
<revision> <revision>
<version>0.0.1</version> <version>0.0.1</version>
<date>2018-03-28</date> <date>2018-03-28</date>
@ -90,7 +96,6 @@
to='benvolio@shakespeare.example' to='benvolio@shakespeare.example'
id='342' id='342'
type='chat'> type='chat'>
<im-ng xmlns='urn:xmpp:im-ng:0'/>
<body>I neither know it nor can learn of him</body> <body>I neither know it nor can learn of him</body>
</message>]]></example> </message>]]></example>
<p>When an entity wants to send a non-error message to be received exclusively by a single resource, they include an &lt;im-ng xmlns='urn:xmpp:im-ng:0'&gt; element in the message. An IM-NG server receiving this MUST then send it to only the specified resource, if available, or respond with an error consistent with RFC-6121 ("return an error stanza to the sender, which SHOULD be &lt;service-unavailable/&gt;").</p> <p>When an entity wants to send a non-error message to be received exclusively by a single resource, they include an &lt;im-ng xmlns='urn:xmpp:im-ng:0'&gt; element in the message. An IM-NG server receiving this MUST then send it to only the specified resource, if available, or respond with an error consistent with RFC-6121 ("return an error stanza to the sender, which SHOULD be &lt;service-unavailable/&gt;").</p>
@ -106,8 +111,9 @@
</section1> </section1>
<section1 topic='Business Rules' anchor='rules'> <section1 topic='Business Rules' anchor='rules'>
<p>Any message of normal type, or type 'chat', 'groupchat' or 'headline' sent to a bare JID is distributed to all IM-NG clients (error messages sent to the bare JID are in response to server-generated stanzas, and so are not routed to clients).</p> <p>Any message of normal type, or type 'chat', 'groupchat' or 'headline' sent to a bare JID is distributed to all IM-NG clients (error messages sent to the bare JID are in response to server-generated stanzas, and so are not routed to clients).</p>
<p>A message of type error, sent to a full JID without an &lt;im-ng xmlns='urn:xmpp:im-ng:0'&gt; element is to be distributed to all IM-NG clients</p>
<p>Any message that is routed to all IM-NG clients is stored in the MAM archive, where available, and any message that would not be routed to all IM-NG clients is not stored in the MAM archive</p> <p>Any message that is routed to all IM-NG clients is stored in the MAM archive, where available, and any message that would not be routed to all IM-NG clients is not stored in the MAM archive</p>
<p>In order for interoperatility with other entities (contacts, remote servers etc.) that don't support IM-NG, old-style full-JID messages also need to be handled. When a server receives a message with type other than normal or 'chat' that does not contain an &lt;im-ng xmlns='urn:xmpp:im-ng:0'&gt; element are routed by the above rules as if they were sent to the bare JID</p> <p>In order for interoperability with other entities (contacts, remote servers etc.) that don't support IM-NG, old-style full-JID messages also need to be handled. When a server receives a message with type other than than 'groupchat' or 'headline' that does not contain an &lt;im-ng xmlns='urn:xmpp:im-ng:0'&gt; element it is to be routed by the above rules as if they were sent to the bare JID</p>
<p>A client activating IM-NG MUST NOT also activate Carbons.</p> <p>A client activating IM-NG MUST NOT also activate Carbons.</p>
<p>An IM-NG client SHOULD send all IM-related messages to bare JIDs (as full-JID messages would not be distributed appropriately).</p> <p>An IM-NG client SHOULD send all IM-related messages to bare JIDs (as full-JID messages would not be distributed appropriately).</p>
<p>An IM-NG client SHOULD ignore any IM-related messages that are sent to a full-JID with an &lt;im-ng xmlns='urn:xmpp:im-ng:0'&gt; element (see Security Considerations).</p> <p>An IM-NG client SHOULD ignore any IM-related messages that are sent to a full-JID with an &lt;im-ng xmlns='urn:xmpp:im-ng:0'&gt; element (see Security Considerations).</p>