No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

xep-0033.xml 37KB

  1. <?xml version='1.0'?>
  2. <!DOCTYPE xep SYSTEM 'xep.dtd' [
  3. <!ENTITY % ents SYSTEM 'xep.ent'>
  4. %ents;
  5. ]>
  6. <?xml-stylesheet type='text/xsl' href='xep.xsl'?>
  7. <xep>
  8. <header>
  9. <title>Extended Stanza Addressing</title>
  10. <abstract>This specification defines an XMPP protocol extension that enables entities to include RFC822-style address headers within XMPP stanzas in order to specify multiple recipients or sub-addresses.</abstract>
  12. <number>0033</number>
  13. <status>Draft</status>
  14. <type>Standards Track</type>
  15. <sig>Standards</sig>
  16. <dependencies>
  17. <spec>XMPP Core</spec>
  18. <spec>XEP-0030</spec>
  19. </dependencies>
  20. <supersedes/>
  21. <supersededby/>
  22. <shortname>address</shortname>
  23. <schemaloc>
  24. <url></url>
  25. </schemaloc>
  26. &hildjj;
  27. &stpeter;
  28. <revision>
  29. <version>1.2.1</version>
  30. <date>2017-01-11</date>
  31. <initials>cs (XEP Editor: ssw)</initials>
  32. <remark>Clarify Reply Handling, add 'ofrom' type and fix examples</remark>
  33. </revision>
  34. <revision>
  35. <version>1.2</version>
  36. <date>2015-09-22</date>
  37. <initials>mre/psa (XEP Editor: ssw)</initials>
  38. <remark>Clarification: Multicast service MUST track directed presence broadcast to later ensure broadcast of subsequent unvailable presence to the same receiving parties.</remark>
  39. </revision>
  40. <revision>
  41. <version>1.1</version>
  42. <date>2004-09-15</date>
  43. <initials>psa</initials>
  44. <remark>Per list discussion, removed prohibition on multiple replyto and replyroom addresses, since this is allowed by RFC 822.</remark>
  45. </revision>
  46. <revision>
  47. <version>1.0</version>
  48. <date>2004-05-10</date>
  49. <initials>psa</initials>
  50. <remark>Per a vote of the Jabber Council, advanced status to Draft; also added Security Considerations in consultation with author.</remark>
  51. </revision>
  52. <revision>
  53. <version>0.10</version>
  54. <date>2004-03-18</date>
  55. <initials>psa</initials>
  56. <remark>Disallowed &lt;addresses/&gt; as direct child
  57. of &IQ;.</remark>
  58. </revision>
  59. <revision>
  60. <version>0.9</version>
  61. <date>2004-02-27</date>
  62. <initials>jjh</initials>
  63. <remark>Added language note on desc attribute. Ensured
  64. that if uri attribute is used, node MUST NOT be.</remark>
  65. </revision>
  66. <revision>
  67. <version>0.8</version>
  68. <date>2004-02-11</date>
  69. <initials>jjh</initials>
  70. <remark>Editorial cleanups, rearrangement. Allowed IQ's
  71. in certain cases. Clarified node rules. Changed
  72. delivered='yes' to delivered='true'. Noreply shouldn't
  73. imply no other addresses. Clarified when authorization
  74. checks take place. Remove own address on reply. Bad URI
  75. error added.</remark>
  76. </revision>
  77. <revision>
  78. <version>0.7</version>
  79. <date>2004-02-04</date>
  80. <initials>jjh</initials>
  81. <remark>Clarified that a node attribute refers to a disco
  82. node.</remark>
  83. </revision>
  84. <revision>
  85. <version>0.6</version>
  86. <date>2004-02-04</date>
  87. <initials>jjh</initials>
  88. <remark>Changed namespace to
  89. '', and removed one
  90. level of nesting, since addresses are the only block left.
  91. Made it clearer that the session manager can implement
  92. multicast directly. Removed infobits (needs to be a
  93. separate specification). Reworked the examples to be more correct.
  94. Added reply handling rules. Added schema.</remark>
  95. </revision>
  96. <revision>
  97. <version>0.5</version>
  98. <date>2003-12-17</date>
  99. <initials>jjh</initials>
  100. <remark>Replaced info with infobits, added noreply address
  101. type.</remark>
  102. </revision>
  103. <revision>
  104. <version>0.4</version>
  105. <date>2003-12-15</date>
  106. <initials>jjh</initials>
  107. <remark>Removed trace; if you want that, use a different
  108. namespace. Required disco use, and removed agents/browse.
  109. Added URI addressing.</remark>
  110. </revision>
  111. <revision>
  112. <version>0.3</version>
  113. <date>2002-07-29</date>
  114. <initials>jjh</initials>
  115. <remark>Made addresses extensible, added replyroom</remark>
  116. </revision>
  117. <revision>
  118. <version>0.2</version>
  119. <date>2002-05-06</date>
  120. <initials>jjh</initials>
  121. <remark>Re-worked to simpler/more structured XML.</remark>
  122. </revision>
  123. <revision>
  124. <version>0.1</version>
  125. <date>2002-04-19</date>
  126. <initials>jjh</initials>
  127. <remark>Initial version.</remark>
  128. </revision>
  129. </header>
  130. <section1 topic='Introduction' anchor='intro'>
  131. <p>On the existing Jabber network, there are many opportunities to optimize stanza traffic. For example, clients that want to send the same stanza to multiple recipients currently must send multiple stanzas. Similarly, when a user comes online the server sends many nearly-identical presence stanzas to remote servers.</p>
  132. <p>The '' specification provides a method for both clients and servers to send a single stanza and have it be delivered to multiple recipients, similar to that found in &rfc0822;. As a side-effect, it also provides all of the functionality specified by the old 'jabber:x:envelope' <note><link url=''>jabber:x:envelope</link> - Message Envelope Information Extension</note> proposal, which this XEP can supersede.</p>
  133. </section1>
  134. <section1 topic='Discovering Server Support' anchor='disco'>
  135. <p>Support for Extended Stanza Addressing in a given server instance SHOULD be determined using &xep0030;. A conforming server MUST respond to disco#info requests.</p>
  136. <section2 topic='Disco to determine support' anchor='disco-support'>
  137. <p>To determine if a server or service supports Extended Stanza Addressing, the requesting entity SHOULD send a disco#info request to it.</p>
  138. <example caption='Disco request for address header support'><![CDATA[
  139. <iq type='get'
  140. from=''
  141. to=''
  142. id='info1'>
  143. <query xmlns=''/>
  144. </iq>]]>
  145. </example>
  146. <p>If the server supports Extended Stanza Addressing, it MUST include a "" feature in the response.</p>
  147. <example caption='Disco response for server supporting address headers'><![CDATA[
  148. <iq type='result'
  149. from=''
  150. to=''
  151. id='info1'>
  152. <query xmlns=''>
  153. ...
  154. <feature var=''/>
  155. ...
  156. </query>
  157. </iq>]]>
  158. </example>
  159. </section2>
  160. <section2 topic='Multicast service' anchor='disco-multicast'>
  161. <p>The IM service MAY implement multicast directly, or it MAY delegate that chore to a separate service. A client can use the following approach to find a multicast-capable service hosted by its domain:</p>
  162. <ol>
  163. <li>Send a disco#info request to the IM server; if its reply includes the '' feature, then it is a multicast-capable service.</li>
  164. <li>If the IM server is not a multicast-capable service, send a disco#items request to the IM server; the IM server will then return a list of associated services.</li>
  165. <li>Send a disco#info request to each of the services associated with the IM server; if one of the replies includes the '' feature, then that service is a multicast-capable service.</li>
  166. </ol>
  167. <p>The multicast service MAY choose to limit which local users can use the service. The server MAY choose to limit whether non-local servers can send address headers that require the local server to send to third parties (relaying). In either case, if the server chooses to disallow the request, the server MUST return a Forbidden error (see the <link url='#errors'>Error Conditions</link> section below). In the relaying case, the server SHOULD NOT deliver to <em>any</em> of the addresses (even the local ones) if the sender is disallowed.</p>
  168. </section2>
  169. <section2 topic='Caching' anchor='disco-caching'>
  170. <p>Implementations MAY choose to cache the disco response.
  171. Positive responses MAY be cached differently than negative
  172. responses. The result SHOULD NOT be cached for more than 24
  173. hours, unless some sort of time-to-live information is
  174. added to the Service Discovery protocol in the future.</p>
  175. </section2>
  176. </section1>
  177. <section1 topic='Outer Stanza' anchor='outer'>
  178. <p>For multicast processing, the stanza containing an address header
  179. (the 'outer stanza') MUST be addressed to the multicast service,
  180. with no username or resource in the 'to' attribute.</p>
  181. <p>When used for additional information in a one-to-one stanza
  182. (e.g. using the 'node' attribute), the outer stanza SHOULD be
  183. addressed directly to the recipient, not to the multicast
  184. service.</p>
  185. <p>A multicast service MUST NOT change the 'from' address on
  186. the outer stanza. Note that this will limit third-party
  187. relaying across server-to-server connections as a side-effect.</p>
  188. <p>Address headers MAY be included in message or presence
  189. stanzas. They MUST NOT be included as the direct child of an
  190. IQ stanza.</p>
  191. </section1>
  192. <section1 topic='Addresses' anchor='addresses'>
  193. <p>Address values are packaged together into an
  194. &lt;addresses/&gt; element.</p>
  195. <example caption='Message with an extended address'><![CDATA[<message to=''>
  196. <addresses xmlns=''>
  197. <address type='to' jid='' desc='Joe Hildebrand'/>
  198. <address type='cc' jid='' desc='Jeremie Miller'/>
  199. </addresses>
  200. <body>Hello, world!</body>
  201. </message>]]></example>
  202. <example caption='Presence with an extended address'><![CDATA[<presence from='' to='' type='unavailable'>
  203. <addresses xmlns=''>
  204. <address type='bcc' jid=''/>
  205. <address type='bcc' jid=''/>
  206. </addresses>
  207. </presence>]]></example>
  208. <p>Each address to which the sender wants the stanza to be re-sent will show up as an &lt;address/&gt; in the &lt;addresses/&gt; element. There are several different types of address, shown below.</p>
  209. <p>An &lt;address/&gt; element MUST possess a 'type' attribute, and MUST possess at least one of the 'jid', 'uri', 'node', and 'desc' attributes. An &lt;address/&gt; element MUST NOT possess both a 'jid' attribute and a 'uri' attribute. If sending through a multicast service, an address MUST include a 'jid' or a 'uri' attribute, unless it is of type 'noreply'.</p>
  210. <section2 topic="'jid' attribute" anchor='addr-jid'>
  211. <p>The 'jid' attribute is used to specify a simple Jabber ID associated with this address. If the 'jid' attribute is specified, the 'uri' attribute MUST NOT be specified. Support for the 'jid' attribute is REQUIRED.</p>
  212. </section2>
  213. <section2 topic="'uri' attribute" anchor='addr-uri'>
  214. <p>The 'uri' attribute is used to specify an external system address, such as a sip:, sips:, or im: URI. If the 'uri' attribute is specified, the 'jid' and 'node' attributes MUST NOT be specified. These URIs MUST be formatted as specified in their respective RFCs, however with the characters &amp; &lt; &gt; &apos; &quot; replaced by their equivalent XML escapes, &amp;amp; &amp;lt; &amp;gt; &amp;apos; &amp;quot;. If a receiving entity does not understand the given URI scheme, or if the URI is not formatted correctly, a "JID Malformed" error SHOULD be returned. Support for the 'uri' attribute is OPTIONAL.</p>
  215. </section2>
  216. <section2 topic="'node' attribute" anchor='addr-node'>
  217. <p>The 'node' attribute is used to specify a sub-addressable unit at a particular JID, corresponding to a Service Discovery node. A node attribute MAY be included if a 'jid' attribute is specified. If a 'uri' attribute is specified, a 'node' attribute MUST NOT be specified. Support for the 'node' attribute is RECOMMENDED.</p>
  218. </section2>
  219. <section2 topic="'desc' attribute" anchor='addr-desc'>
  220. <p>The 'desc' attribute is used to specify human-readable information for this address. This data may be used by clients to provide richer address-book integration. This information is in the language of the sender, which MAY be identified using the standard xml:lang rules from &xmppcore;. Support for the 'desc' attribute is RECOMMENDED.</p>
  221. </section2>
  222. <section2 topic="'delivered' attribute" anchor='addr-delivered'>
  223. <p>When a multicast service delivers the stanza to a non-bcc address, it MUST add a delivered='true' attribute to the address element. A multicast service MUST NOT deliver to an address that was marked with a delivered='true' attribute when the service received the stanza. A multicast service SHOULD attempt to deliver to all addresses that are not marked with a delivered='true' attribute. The delivered attribute is used to prevent loops. See the <link url='#multicast'>Multicast Usage</link> section below for more details. Support for the 'delivered' attribute is REQUIRED.</p>
  224. </section2>
  225. <section2 topic="'type' attribute" anchor='addr-type'>
  226. <p>The 'type' attribute is used to specify the semantics of a particular address. Support for the 'type' attribute is REQUIRED.</p>
  227. <section3 topic="Address type='to'" anchor='addr-type-to'>
  228. <p>These addressees are the primary recipients of the stanza.</p>
  229. </section3>
  230. <section3 topic="Address type='cc'" anchor='addr-type-cc'>
  231. <p>These addressees are the secondary recipients of the stanza.</p>
  232. </section3>
  233. <section3 topic="Address type='bcc'" anchor='addr-type-bcc'>
  234. <p>These addressees should receive 'blind carbon copies' of the stanza. This means that the server MUST remove these addresses before the stanza is delivered to anyone other than the given bcc addressee or the multicast service of the bcc addressee.</p>
  235. </section3>
  236. <section3 topic="Address type='replyto'" anchor='addr-type-replyto'>
  237. <p>This is the address to which all replies are requested to be sent. Clients SHOULD respect this request unless an explicit override occurs. There MAY be more than one replyto or replyroom on a stanza, in which case the reply stanza MUST be routed to all of the addresses.</p>
  238. </section3>
  239. <section3 topic="Address type='replyroom'" anchor='addr-type-replyroom'>
  240. <p>This is the JID of a &xep0045; room to which responses should be sent. When a user wants to reply to this stanza, the client SHOULD join this room first. Clients SHOULD respect this request unless an explicit override occurs. There MAY be more than one replyto or replyroom on a stanza, in which case the reply stanza MUST be routed to all of the addresses.</p>
  241. </section3>
  242. <section3 topic="Address type='noreply'" anchor='addr-type-noreply'>
  243. <p>This address type contains no actual address information. Instead, it means that the receiver SHOULD NOT reply to the message. This is useful when broadcasting messages to many receivers.</p>
  244. </section3>
  245. <section3 topic="Address type='ofrom'" anchor='addr-type-ofrom'>
  246. <p>This address type is used by &xep0045; services. If a room is non-anonymous, the service MAY include an Extended Stanza Addressing (XEP-0033) [16] element that notes the original full JID of the sender by means of the "ofrom" address type</p>
  247. </section3>
  248. </section2>
  249. <section2 topic="Extensibility" anchor='extensibility'>
  250. <p>As specified herein, the &lt;address/&gt; element is empty. Implementations or future protocols MAY extend the &lt;address/&gt; element for additional functionality, but any extensions are out of scope for this XEP. Such extensions SHOULD be appropriately qualified with a new namespace, and any extensions that are not understood by an implementation MUST be ignored.</p>
  251. <example caption='Possible future extension'><![CDATA[<message to=''>
  252. <addresses xmlns=''>
  253. <address type='to' desc='Foo Group'>
  254. <group xmlns='some:funny:group:ns'>foo</group>
  255. </address>
  256. <address type='replyroom' jid=''/>
  257. </addresses>
  258. </message>]]></example>
  259. </section2>
  260. </section1>
  261. <section1 topic='Business Rules' anchor='rules'>
  262. <section2 topic='Directed Presence' anchor='presence'>
  263. <p>This specification can be used to, in effect, send directed
  264. presence (see Section 4.6 of &rfc6121;). In order to ensure
  265. that entities that have received directed available presence
  266. through the service also are informed when the originating
  267. entity sends unavailable presence, the multicast service MUST
  268. do the following:</p>
  269. <ol>
  270. <li>Keep track of the entities to which it sends available
  271. presence (i.e., presence stanzas with no 'type' attribute)
  272. along with the originating entity of that presence.</li>
  273. <li>Upon receiving a presence stanza of type "unavailable"
  274. from an originating entity, broadcast that unavailable
  275. presence to all entities to which it has send available
  276. presence.</li>
  277. </ol>
  278. <p>In this way, the multicast service ensures that all
  279. entities which have received available presence through the
  280. service also receive the associated unavailable presence.</p>
  281. </section2>
  282. </section1>
  283. <section1 topic='Multicast Usage' anchor='multicast'>
  284. <p>The following usage scenario shows how messages flow through both address-enabled and non-address-enabled portions of the Jabber network.</p>
  285. <p>Note: the logic associated with <em>how</em> to perform the following tasks is purely informational. A conforming service MUST generate output as if these rules had been followed, but need not (and probably <em>will not</em>) use this algorithm.</p>
  286. <ol>
  287. <li>User desires to send a stanza to more than one
  288. recipient.</li>
  289. <li>Client determines the JID of a multicast service,
  290. using Service Discovery.</li>
  291. <li>If no multicast service is found, the client MAY
  292. choose to deliver each stanza individually, or it MAY
  293. query each of the servers associated with desired
  294. recipients, and batch stanzas to those servers
  295. itself.</li>
  296. <li>If a multicast service is found, the client constructs
  297. a stanza with an address block, and sends it to the
  298. multicast service. (Note: For the following rules, any
  299. address that was marked on the incoming address header
  300. with delivered='true' is never re-delivered.)</li>
  301. <li>The server checks to see if it can deliver to all of
  302. the specified addresses. If not, the stanza is returned
  303. with a "Forbidden" error, and processing stops.</li>
  304. <li>The server adds a delivered='true' attribute to all
  305. addresses.</li>
  306. <li>The server removes all type='bcc' attributes.</li>
  307. <li>The server delivers the stanza to all of the 'to',
  308. 'cc', and 'bcc' addresses from the original address header that
  309. are being handled locally. The server replaces the
  310. 'to' attribute on the outer stanza with the JID of each
  311. addressee. Each 'bcc' recipient MUST receive only the
  312. &lt;address type='bcc'/&gt; associated with that
  313. addressee.</li>
  314. <li>For each non-local server (the 'target server') that
  315. has addresses specified in 'to', 'cc', or 'bcc' addresses
  316. in the original address header, the local server determines
  317. whether the target server supports multicast, using Service
  318. Discovery.</li>
  319. <li>If the target server does not support address headers, the
  320. local server sends a copy of the stanza to each address,
  321. with the 'to' attribute on the outer stanza set to the JID
  322. of the given addressee.</li>
  323. <li>If the target server does support address headers, the server
  324. removes the delivered='true' attributes on each of the
  325. addresses bound for that server, and replaces the 'to'
  326. attribute on the outer stanza with the adress of the
  327. multicast service for the target server. The 'bcc'
  328. addresses for the target server from the original address header
  329. are added back to the address header. A single stanza is sent to
  330. the target server.</li>
  331. </ol>
  332. </section1>
  333. <section1 topic='Example Flow' anchor='examples'>
  334. <p>Assume for these examples that and
  335. support address headers, and does not.</p>
  336. <example caption='Client checks local server for address header support'><![CDATA[<iq type='get' to='' from='' id='id_1'>
  337. <query xmlns=''/>
  338. </iq>]]></example>
  339. <example caption='Client receives positive results from server'><![CDATA[<iq type='result' from='' to='' id='id_1'>
  340. <query xmlns=''>
  341. <feature var=''/>
  342. </query>
  343. </iq>]]></example>
  344. <example caption='Client sends message to local server with address header'><![CDATA[<message to='' from=''>
  345. <addresses xmlns=''>
  346. <address type='to' jid=''/>
  347. <address type='cc' jid=''/>
  348. <address type='bcc' jid=''/>
  349. <address type='to' jid=''/>
  350. <address type='cc' jid=''/>
  351. <address type='bcc' jid=''/>
  352. <address type='to' jid=''/>
  353. <address type='cc' jid=''/>
  354. <address type='bcc' jid=''/>
  355. </addresses>
  356. <body>Hello, World!</body>
  357. </message>]]></example>
  358. <example caption='Server delivers to local addresses'><![CDATA[<message to='' from=''>
  359. <addresses xmlns=''>
  360. <address type='to' jid='' delivered='true'/>
  361. <address type='cc' jid='' delivered='true'/>
  362. <address type='to' jid='' delivered='true'/>
  363. <address type='cc' jid='' delivered='true'/>
  364. <address type='to' jid='' delivered='true'/>
  365. <address type='cc' jid='' delivered='true'/>
  366. </addresses>
  367. <body>Hello, World!</body>
  368. </message>
  369. <message to='' from=''>
  370. <addresses xmlns=''>
  371. <address type='to' jid='' delivered='true'/>
  372. <address type='cc' jid='' delivered='true'/>
  373. <address type='to' jid='' delivered='true'/>
  374. <address type='cc' jid='' delivered='true'/>
  375. <address type='to' jid='' delivered='true'/>
  376. <address type='cc' jid='' delivered='true'/>
  377. </addresses>
  378. <body>Hello, World!</body>
  379. </message>
  380. <message to='' from=''>
  381. <addresses xmlns=''>
  382. <address type='to' jid='' delivered='true'/>
  383. <address type='cc' jid='' delivered='true'/>
  384. <address type='bcc' jid=''/>
  385. <address type='to' jid='' delivered='true'/>
  386. <address type='cc' jid='' delivered='true'/>
  387. <address type='to' jid='' delivered='true'/>
  388. <address type='cc' jid='' delivered='true'/>
  389. </addresses>
  390. <body>Hello, World!</body>
  391. </message>]]></example>
  392. <example caption='Local server checks target server for address support'><![CDATA[<iq type='get' to='' from='' id='id_2'>
  393. <query xmlns=''/>
  394. </iq>
  395. ]]></example>
  396. <example caption='Local server receives initial negative results from target server'><![CDATA[<iq type='result' from='' to='' id='id_2'>
  397. <query xmlns=''>
  398. ... no address feature ...
  399. </query>
  400. </iq>]]></example>
  401. <example caption='Local server checks target server for another component having address support'><![CDATA[<iq type='get' to='' from='' id='id_3'>
  402. <query xmlns=''/>
  403. </iq>
  404. ]]></example>
  405. <example caption='Local server receives associated services from target server'><![CDATA[<iq type='result' from='' to='' id='id_3'>
  406. <query xmlns=''>
  407. <item jid=''
  408. name='Multicast Service'/>
  409. </query>
  410. </iq>]]></example>
  411. <example caption='Local server checks associated services for address support'><![CDATA[<iq type='get' to='' from='' id='id_4'>
  412. <query xmlns=''/>
  413. </iq>
  414. ]]></example>
  415. <example caption='Local server receives positive results from target server'><![CDATA[<iq type='result' from='' to='' id='id_4'>
  416. <query xmlns=''>
  417. <feature var=''/>
  418. </query>
  419. </iq>]]></example>
  420. <example caption='Local server delivers to target server supporting address headers'><![CDATA[<message to='' from=''>
  421. <addresses xmlns=''>
  422. <address type='to' jid='' delivered='true'/>
  423. <address type='cc' jid='' delivered='true'/>
  424. <address type='to' jid=''/>
  425. <address type='cc' jid=''/>
  426. <address type='bcc' jid=''/>
  427. <address type='to' jid='' delivered='true'/>
  428. <address type='cc' jid='' delivered='true'/>
  429. </addresses>
  430. <body>Hello, World!</body>
  431. </message>]]></example>
  432. <example caption='Target server delivers to its recipients'><![CDATA[<message to='' from=''>
  433. <addresses xmlns=''>
  434. <address type='to' jid='' delivered='true'/>
  435. <address type='cc' jid='' delivered='true'/>
  436. <address type='to' jid='' delivered='true'/>
  437. <address type='cc' jid='' delivered='true'/>
  438. <address type='to' jid='' delivered='true'/>
  439. <address type='cc' jid='' delivered='true'/>
  440. </addresses>
  441. <body>Hello, World!</body>
  442. </message>
  443. <message to='' from=''>
  444. <addresses xmlns=''>
  445. <address type='to' jid='' delivered='true'/>
  446. <address type='cc' jid='' delivered='true'/>
  447. <address type='to' jid='' delivered='true'/>
  448. <address type='cc' jid='' delivered='true'/>
  449. <address type='to' jid='' delivered='true'/>
  450. <address type='cc' jid='' delivered='true'/>
  451. </addresses>
  452. <body>Hello, World!</body>
  453. </message>
  454. <message to='' from=''>
  455. <addresses xmlns=''>
  456. <address type='to' jid='' delivered='true'/>
  457. <address type='cc' jid='' delivered='true'/>
  458. <address type='to' jid='' delivered='true'/>
  459. <address type='cc' jid='' delivered='true'/>
  460. <address type='bcc' jid=''/>
  461. <address type='to' jid='' delivered='true'/>
  462. <address type='cc' jid='' delivered='true'/>
  463. </addresses>
  464. <body>Hello, World!</body>
  465. </message>]]></example>
  466. <example caption='Local server checks target server for address header support'><![CDATA[<iq type='get' to='' from='' id='id_5'>
  467. <query xmlns=''/>
  468. </iq>]]></example>
  469. <example caption='Local server receives negative results from target server (assume no associated services found)'><![CDATA[<iq type='result' from='' to='' id='id_5'>
  470. <query xmlns=''>
  471. ... no address feature ...
  472. </query>
  473. </iq>]]></example>
  474. <example caption='Server delivers to each address on the target server not supporting address headers'><![CDATA[<message to='' from=''>
  475. <addresses xmlns=''>
  476. <address type='to' jid='' delivered='true'/>
  477. <address type='cc' jid='' delivered='true'/>
  478. <address type='to' jid='' delivered='true'/>
  479. <address type='cc' jid='' delivered='true'/>
  480. <address type='to' jid='' delivered='true'/>
  481. <address type='cc' jid='' delivered='true'/>
  482. </addresses>
  483. <body>Hello, World!</body>
  484. </message>
  485. <message to='' from=''>
  486. <addresses xmlns=''>
  487. <address type='to' jid='' delivered='true'/>
  488. <address type='cc' jid='' delivered='true'/>
  489. <address type='to' jid='' delivered='true'/>
  490. <address type='cc' jid='' delivered='true'/>
  491. <address type='to' jid='' delivered='true'/>
  492. <address type='cc' jid='' delivered='true'/>
  493. </addresses>
  494. <body>Hello, World!</body>
  495. </message>
  496. <message to='' from=''>
  497. <addresses xmlns=''>
  498. <address type='to' jid='' delivered='true'/>
  499. <address type='cc' jid='' delivered='true'/>
  500. <address type='to' jid='' delivered='true'/>
  501. <address type='cc' jid='' delivered='true'/>
  502. <address type='to' jid='' delivered='true'/>
  503. <address type='cc' jid='' delivered='true'/>
  504. <address type='bcc' jid=''/>
  505. </addresses>
  506. <body>Hello, World!</body>
  507. </message>]]></example>
  508. </section1>
  509. <section1 topic='Reply Handling' anchor='replies'>
  510. <p>When replying to a message stanza that contains an extended
  511. address, the following rules apply:</p>
  512. <ol>
  513. <li>If a noreply address is
  514. specified, a reply SHOULD NOT be generated.</li>
  515. <li>If one or more replyroom addresses are specified, the client SHOULD
  516. join the specified chat rooms instead of replying directly
  517. to the specified users. No further extended address
  518. processing is required.</li>
  519. <li>If one or more replyto address are specified, the reply SHOULD go
  520. to the specified addresses. No further extended address
  521. processing is required. Any &lt;thread/&gt; element from
  522. the initial message MUST be copied into the replies.</li>
  523. <li>Otherwise, an extended-address aware client MUST copy
  524. the address header from the original message into the reply,
  525. removing any delivered attributes. If the original sender
  526. is not in the copied list, the original sender MUST be
  527. added as a 'to' address. The recipient's address SHOULD
  528. be removed from the list. The client then proceeds with
  529. the rules from the <link url='#multicast'>Multicast Usage</link>
  530. section above for delivery of the message.</li>
  531. </ol>
  532. </section1>
  533. <section1 topic='Error Conditions' anchor='errors'>
  534. <p>The following error conditions are to be used by implementations (for further information regarding error syntax, see &xep0086;):</p>
  535. <table caption='Error Conditions'>
  536. <tr>
  537. <th>XMPP Condition</th>
  538. <th>Purpose</th>
  539. </tr>
  540. <tr>
  541. <td>&lt;forbidden/&gt;</td>
  542. <td>The sending user does not have permission to use this multicast service.</td>
  543. </tr>
  544. <tr>
  545. <td>&lt;jid-malformed/&gt;</td>
  546. <td>A URI attribute was invalid or not understood (note that support for the 'uri' attribute is optional).</td>
  547. </tr>
  548. <tr>
  549. <td>&lt;not-acceptable/&gt;</td>
  550. <td>Too many receiver fields were specified. Servers SHOULD have a configurable upper limit for the number of addresses. The limit SHOULD be more than 20 and less than 100.</td>
  551. </tr>
  552. </table>
  553. </section1>
  554. <section1 topic='Security Considerations' anchor='security'>
  555. <p>A recipient SHOULD trust a stanza's extended addressing headers only as much as it trusts the sender of the stanza.</p>
  556. <p>Furthermore, there exists the potential for abuse related to the 'replyto' and 'replyroom' features (e.g., an entity could send messages with 'replyroom' set to the address of a room that hosts salacious content or with 'replyto' set to the address of a spambot that harvests Jabber addresses). Therefore if a human user's receiving application receives a message with extended stanza addressing that specifies a 'replyto' or 'replyroom' address other than that of the sender, it SHOULD inform the user of that fact. (Naturally, the receiving application MAY also limit the entities to which the recipient can reply using privacy lists as specified in &xmppim;.)</p>
  557. </section1>
  558. <section1 topic='IANA Considerations' anchor='iana'>
  559. <p>This document requires no interaction with &IANA;.</p>
  560. </section1>
  561. <section1 topic='XMPP Registrar Considerations' anchor='registrar'>
  562. <p>The &REGISTRAR; shall include '' in its registry of protocol namespaces.</p>
  563. </section1>
  564. <section1 topic='XML Schema' anchor='schema'>
  565. <code><![CDATA[
  566. <?xml version='1.0' encoding='UTF-8'?>
  567. <xs:schema
  568. xmlns:xs=''
  569. targetNamespace=''
  570. xmlns=''
  571. elementFormDefault='qualified'>
  572. <xs:annotation>
  573. <xs:documentation>
  574. The protocol documented by this schema is defined in
  575. XEP-0033:
  576. </xs:documentation>
  577. </xs:annotation>
  578. <xs:element name='addresses'>
  579. <xs:complexType>
  580. <xs:sequence>
  581. <xs:element ref='address'
  582. minOccurs='1'
  583. maxOccurs='unbounded'/>
  584. </xs:sequence>
  585. </xs:complexType>
  586. </xs:element>
  587. <xs:element name='address'>
  588. <xs:complexType>
  589. <xs:simpleContent>
  590. <xs:extension base='empty'>
  591. <xs:attribute name='delivered' use='optional' fixed='true'/>
  592. <xs:attribute name='desc' use='optional' type='xs:string'/>
  593. <xs:attribute name='jid' use='optional' type='xs:string'/>
  594. <xs:attribute name='node' use='optional' type='xs:string'/>
  595. <xs:attribute name='type' use='required'>
  596. <xs:simpleType>
  597. <xs:restriction base='xs:NCName'>
  598. <xs:enumeration value='bcc'/>
  599. <xs:enumeration value='cc'/>
  600. <xs:enumeration value='noreply'/>
  601. <xs:enumeration value='replyroom'/>
  602. <xs:enumeration value='replyto'/>
  603. <xs:enumeration value='to'/>
  604. <xs:enumeration value='ofrom'/>
  605. </xs:restriction>
  606. </xs:simpleType>
  607. </xs:attribute>
  608. <xs:attribute name='uri' use='optional' type='xs:string'/>
  609. </xs:extension>
  610. </xs:simpleContent>
  611. </xs:complexType>
  612. </xs:element>
  613. <xs:simpleType name='empty'>
  614. <xs:restriction base='xs:string'>
  615. <xs:enumeration value=''/>
  616. </xs:restriction>
  617. </xs:simpleType>
  618. </xs:schema>
  619. ]]></code>
  620. </section1>
  621. <section1 topic='Acknowledgements' anchor='ack'>
  622. <p>Sections of this document were inspired by RFC 822.</p>
  623. </section1>
  624. </xep>