TOC |
|
By submitting this Internet-Draft, each author represents that any applicable patent or other IPR claims of which he or she is aware have been or will be disclosed, and any of which he or she becomes aware will be disclosed, in accordance with Section 6 of BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet-Drafts.
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as “work in progress.”
The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt.
The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html.
This Internet-Draft will expire on June 7, 2008.
This document describes a profile of the Sieve extension for notifications, to allow notifications to be sent over the Extensible Messaging and Presence Protocol (XMPP), also known as Jabber.
1.
Introduction
1.1.
Overview
1.2.
Terminology
2.
Definition
2.1.
Notify parameter "method"
2.2.
Test notify_method_capability
2.3.
Notify tag ":from"
2.4.
Notify tag ":importance"
2.5.
Notify tag ":message"
2.6.
Notify tag ":options"
2.7.
XMPP syntax
3.
Examples
3.1.
Basic action
3.2.
Action with body
3.3.
Action with body, importance, message, and subject
3.4.
Action with from, message, importance, body, and subject
4.
Requirements Conformance
5.
Internationalization Considerations
6.
Security Considerations
7.
IANA Considerations
8.
References
8.1.
Normative References
8.2.
Informative References
§
Authors' Addresses
§
Intellectual Property and Copyright Statements
TOC |
TOC |
The [NOTIFY] (Melnikov, A., Leiba, B., Segmuller, W., and T. Martin, “SIEVE Email Filtering: Notifications,” November 2007.) extension to the [SIEVE] (Showalter, T. and P. Guenther, “Sieve: An Email Filtering Language,” October 2007.) mail filtering language is a framework for providing notifications by employing URIs to specify the notification mechanism. This document defines how xmpp URIs (see [XMPP‑URI] (Saint-Andre, P., “Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for the Extensible Messaging and Presence Protocol (XMPP),” June 2007.)) are used to generate notifications via the Extensible Messaging and Presence Protocol [XMPP] (Saint-Andre, P., “Extensible Messaging and Presence Protocol (XMPP): Core,” October 2004.), which is widely implemented in Jabber instant messaging technologies.
TOC |
This document inherits terminology from [NOTIFY] (Melnikov, A., Leiba, B., Segmuller, W., and T. Martin, “SIEVE Email Filtering: Notifications,” November 2007.), [SIEVE] (Showalter, T. and P. Guenther, “Sieve: An Email Filtering Language,” October 2007.), and [XMPP] (Saint-Andre, P., “Extensible Messaging and Presence Protocol (XMPP): Core,” October 2004.).
The capitalized key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [TERMS] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.).
TOC |
TOC |
The "method" parameter MUST be a URI that conforms to the xmpp URI scheme (as specified in [XMPP‑URI] (Saint-Andre, P., “Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for the Extensible Messaging and Presence Protocol (XMPP),” June 2007.)) and that identifies an XMPP account associated with the email inbox. The URI MAY include the resource identifier of an XMPP address and/or the query component portion of an XMPP URI, but SHOULD NOT include an authority component or fragment identifier component. The processing application MUST extract an XMPP address from the URI in accordance with the processing rules specified in [XMPP‑URI] (Saint-Andre, P., “Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for the Extensible Messaging and Presence Protocol (XMPP),” June 2007.). The resulting XMPP address MUST be encapsulated in XMPP syntax as the value of the XMPP 'to' attribute.
TOC |
In response to a notify_method_capability test for the "online" notification-capability, an implementation SHOULD return a value of "yes" if it has knowledge of an active presence session (see [XMPP‑IM] (Saint-Andre, P., “Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence,” October 2004.)) for the specified XMPP notification-uri; otherwise it SHOULD return a value of "maybe" (since typical XMPP systems may not allow a SIEVE engine to gain knowledge about the presence of XMPP entities).
TOC |
The ":from" tag has no special meaning for this notification mechanism, and this specification puts no restriction on its use. The value of the ":from" tag MAY be transformed into XMPP syntax; if so, it SHOULD be encapsulated as the value of an XMPP Stanza Headers and Internet Metadata [SHIM] (Saint-Andre, P. and J. Hildebrand, “Stanza Headers and Internet Metadata,” July 2006.) header named "Reply-To".
TOC |
The ":importance" tag has no special meaning for this notification mechanism, and this specification puts no restriction on its use. The value of the ":importance" tag MAY be transformed into XMPP syntax (in addition to or instead of including appropriate text in the XML character data of the XMPP <body/> element); if so, it SHOULD be encapsulated as the value of an XMPP Stanza Headers and Internet Metadata [SHIM] (Saint-Andre, P. and J. Hildebrand, “Stanza Headers and Internet Metadata,” July 2006.) header named "Urgency", where the XML character of that header is "high" if the value of the ":importance" tag is "1", "medium" if the value of the ":importance" tag is "2", and "low" if the value of the ":importance" tag is "3".
TOC |
If the ":message" tag is included, that string MUST be transformed into the XML character data of an XMPP <body/> element (where the string is generated according to the guidelines specified in Section 3.6 of [NOTIFY] (Melnikov, A., Leiba, B., Segmuller, W., and T. Martin, “SIEVE Email Filtering: Notifications,” November 2007.)).
TOC |
The ":options" tag has no special meaning for this notification mechanism. Any handling of this tag is the responsibility of an implementation.
TOC |
The xmpp mechanism results in the sending of an XMPP message to notify a recipient about an email message. The general XMPP syntax is as follows:
TOC |
In the following examples, the sender of the email has an address of <mailto:juliet@example.org>, the entity to be notified has an email address of <mailto:romeo@example.com> and an XMPP address of romeo@im.example.com (resulting in an XMPP URI of <xmpp:romeo@im.example.com>), and the notification service associated with the SIEVE engine has an XMPP address of notify.example.com.
Note: In the following examples, line breaks are included in XMPP URIs solely for the purpose of readability.
TOC |
The following is a basic Sieve notify action with only a method. The XML character data of the XMPP <body/> and <subject/> elements are therefore generated by the Sieve engine based on configuration. In addition, the Sieve engine includes a URI pointing to the message.
Basic action (Sieve syntax)
notify "xmpp:romeo@im.example.com"
The resulting XMPP <message/> stanza might be as follows.
Basic action (XMPP syntax)
<message from='notify.example.com' to='romeo@im.example.com' type='headline' xml:lang='en'> <subject>SIEVE</subject> <body><juliet@example.com> You got mail.</body> <x xmlns='jabber:x:oob'> <url> imap://romeo@example.com/INBOX;UIDVALIDITY=385759043/;UID=18 </url> </x> </message>
TOC |
The following action contains a "body" parameter in the query component of the XMPP URI but no ":message" tag in the Sieve script. As a result, the XML character data of the XMPP <body/> element in the XMPP notification is taken from the XMPP URI. In addition, the Sieve engine includes a URI pointing to the message.
Action with body (Sieve syntax)
notify "xmpp:romeo@im.example.com?message ;body=Wherefore%20art%20thou%3F"
The resulting XMPP <message/> stanza might be as follows.
Action with body (XMPP syntax)
<message from='notify.example.com' to='romeo@im.example.com' type='headline' xml:lang='en'> <subject>SIEVE</subject> <body>Wherefore art thou?</body> <x xmlns='jabber:x:oob'> <url> imap://romeo@example.com/INBOX;UIDVALIDITY=385759044/;UID=19 </url> </x> </message>
TOC |
The following action specifies an ":importance" tag and a ":message" tag in the Sieve script, as well as a "body" parameter and a "subject" parameter in the query component of the XMPP URI. As a result, the ":message" tag from the Sieve script overrides the "body" parameter from the XMPP URI when generating the XML character data of the XMPP <body/> element. In addition, the Sieve engine includes a URI pointing to the message.
Action with body, importance, message, and subject (Sieve syntax)
notify :importance "1" :message "Contact Juliet immediately!" "xmpp:romeo@im.example.com?message ;body=You%27re%20in%20trouble ;subject=ALERT%21"
The resulting XMPP <message/> stanza might be as follows.
Action with body, importance, message, and subject (XMPP syntax)
<message from='notify.example.com' to='romeo@im.example.com' type='headline' xml:lang='en'> <subject>ALERT!</subject> <body>Contact Juliet immediately!</body> <headers xmlns='http://jabber.org/protocol/shim'> <header name='Urgency'>high</header> </headers> <x xmlns='jabber:x:oob'> <url> imap://romeo@example.com/INBOX;UIDVALIDITY=385759045/;UID=20 </url> </x> </message>
TOC |
The following action specifies a ":from" tag, an ":importance" tag, and a ":message" tag in the Sieve script, as well as a "body" parameter and a "subject" parameter in the query component of the XMPP URI. As a result, the ":message" tag from the Sieve script overrides the "body" parameter from the XMPP URI when generating the XML character data of the XMPP <body/> element. In addition, the Sieve engine includes a URI pointing to the message, as well as an XMPP Stanza Headers and Internet Metadata [SHIM] (Saint-Andre, P. and J. Hildebrand, “Stanza Headers and Internet Metadata,” July 2006.) header named "Reply-To" (which encapsulates the value of the ":from" tag) and a SHIM header named "Resent-From" (which encapsulates the value of the original email message that triggered the notification).
Action with body, from, importance, message, and subject (Sieve syntax)
notify :from "bill.shakespeare@example.com" :importance "1" :message "Contact Juliet immediately!" "xmpp:romeo@im.example.com?message ;body=You%27re%20in%20trouble ;subject=ALERT%21"
The resulting XMPP <message/> stanza might be as follows.
Action with body, from, importance, message, and subject (XMPP syntax)
<message from='notify.example.com' to='romeo@im.example.com' type='headline' xml:lang='en'> <subject>ALERT!</subject> <body>Contact Juliet immediately!</body> <headers xmlns='http://jabber.org/protocol/shim'> <header name='Reply-To'>bill.shakespeare@example.net</header> <header name='Resent-From'>romeo@example.com</header> <header name='Urgency'>high</header> </headers> <x xmlns='jabber:x:oob'> <url> imap://romeo@example.com/INBOX;UIDVALIDITY=385759045/;UID=21 </url> </x> </message>
TOC |
Section 3.8 of [NOTIFY] (Melnikov, A., Leiba, B., Segmuller, W., and T. Martin, “SIEVE Email Filtering: Notifications,” November 2007.) specifies a set of requirements for Sieve notification methods. The conformance of the xmpp notification mechanism is provided here.
TOC |
Although an XMPP address may contain nearly any [UNICODE] (The Unicode Consortium, “The Unicode Standard, Version 3.2.0,” 2000.) character, the value of the "method" parameter MUST be a Uniform Resource Identifier (see [URI] (Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” January 2005.)) rather than an Internationalized Resource Identifier (see [IRI] (Duerst, M. and M. Suignard, “Internationalized Resource Identifiers (IRIs),” January 2005.)). The rules specified in [XMPP‑URI] (Saint-Andre, P., “Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for the Extensible Messaging and Presence Protocol (XMPP),” June 2007.) MUST be followed when generating XMPP URIs.
In accordance with Section 13 of RFC 3920, all data sent over XMPP MUST be encoded in [UTF‑8] (Yergeau, F., “UTF-8, a transformation format of ISO 10646,” November 2003.).
TOC |
Depending on the information included, sending a notification can be comparable to forwarding mail to the notification recipient. Care must be taken when forwarding mail automatically, to ensure that confidential information is not sent into an insecure environment. In particular, implementations MUST conform to the security considerations given in [NOTIFY] (Melnikov, A., Leiba, B., Segmuller, W., and T. Martin, “SIEVE Email Filtering: Notifications,” November 2007.), [SIEVE] (Showalter, T. and P. Guenther, “Sieve: An Email Filtering Language,” October 2007.), and [XMPP] (Saint-Andre, P., “Extensible Messaging and Presence Protocol (XMPP): Core,” October 2004.).
TOC |
The following template provides the IANA registration of the Sieve notification mechanism specified in this document:
To: iana@iana.org Subject: Registration of new Sieve notification mechanism Mechanism name: xmpp Mechanism URI: draft-saintandre-rfc4622bis Mechanism-specific options: none Standards Track/IESG-approved experimental RFC number: this RFC Person and email address to contact for further information: Peter Saint-Andre <stpeter@jabber.org>
This information should be added to the list of Sieve notification mechanisms maintained at <http://www.iana.org/assignments/sieve-notification>.
TOC |
TOC |
[NOTIFY] | Melnikov, A., Leiba, B., Segmuller, W., and T. Martin, “SIEVE Email Filtering: Notifications,” draft-ietf-sieve-notify-10 (work in progress), November 2007 (TXT). |
[OOB] | Saint-Andre, P., “Out of Band Data,” XSF XEP 0066, August 2006. |
[QUERIES] | Saint-Andre, P., “XMPP URI Scheme Query Components,” XSF XEP 0147, September 2006. |
[SHIM] | Saint-Andre, P. and J. Hildebrand, “Stanza Headers and Internet Metadata,” XSF XEP 0131, July 2006. |
[SIEVE] | Showalter, T. and P. Guenther, “Sieve: An Email Filtering Language,” draft-ietf-sieve-3028bis-13 (work in progress), October 2007 (TXT). |
[TERMS] | Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” BCP 14, RFC 2119, March 1997. |
[XMPP-URI] | Saint-Andre, P., “Internationalized Resource Identifiers (IRIs) and Uniform Resource Identifiers (URIs) for the Extensible Messaging and Presence Protocol (XMPP),” draft-saintandre-rfc4622bis-01 (work in progress), June 2007 (TXT). |
TOC |
[HTTP] | Fielding, R., Gettys, J., Mogul, J., Frystyk, H., Masinter, L., Leach, P., and T. Berners-Lee, “Hypertext Transfer Protocol -- HTTP/1.1,” RFC 2616, June 1999 (TXT, PS, PDF, HTML, XML). |
[IMAP] | Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” RFC 3501, March 2003 (TXT). |
[IMAP-URL] | Melnikov, A. and C. Newman, “IMAP URL Scheme,” RFC 5092, November 2007 (TXT). |
[POP-URL] | Gellens, R., “POP URL Scheme,” RFC 2384, August 1998 (TXT, XML). |
[IRI] | Duerst, M. and M. Suignard, “Internationalized Resource Identifiers (IRIs),” RFC 3987, January 2005 (TXT). |
[UNICODE] | The Unicode Consortium, “The Unicode Standard, Version 3.2.0,” 2000. The Unicode Standard, Version 3.2.0 is defined by The Unicode Standard, Version 3.0 (Reading, MA, Addison-Wesley, 2000. ISBN 0-201-61633-5), as amended by the Unicode Standard Annex #27: Unicode 3.1 (http://www.unicode.org/reports/tr27/) and by the Unicode Standard Annex #28: Unicode 3.2 (http://www.unicode.org/reports/tr28/). |
[URI] | Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifier (URI): Generic Syntax,” STD 66, RFC 3986, January 2005 (TXT). |
[UTF-8] | Yergeau, F., “UTF-8, a transformation format of ISO 10646,” STD 63, RFC 3629, November 2003 (TXT). |
[XMPP] | Saint-Andre, P., “Extensible Messaging and Presence Protocol (XMPP): Core,” RFC 3920, October 2004 (TXT). |
[XMPP-IM] | Saint-Andre, P., “Extensible Messaging and Presence Protocol (XMPP): Instant Messaging and Presence,” RFC 3921, October 2004 (TXT). |
TOC |
Peter Saint-Andre | |
XMPP Standards Foundation | |
Email: | stpeter@jabber.org |
URI: | https://stpeter.im/ |
Alexey Melnikov | |
Isode Limited | |
Email: | Alexey.Melnikov@isode.com |
TOC |
Copyright © The IETF Trust (2007).
This document is subject to the rights, licenses and restrictions contained in BCP 78, and except as set forth therein, the authors retain all their rights.
This document and the information contained herein are provided on an “AS IS” basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY, THE IETF TRUST AND THE INTERNET ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
The IETF takes no position regarding the validity or scope of any Intellectual Property Rights or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; nor does it represent that it has made any independent effort to identify any such rights. Information on the procedures with respect to rights in RFC documents can be found in BCP 78 and BCP 79.
Copies of IPR disclosures made to the IETF Secretariat and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementers or users of this specification can be obtained from the IETF on-line IPR repository at http://www.ietf.org/ipr.
The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights that may cover technology that may be required to implement this standard. Please address the information to the IETF at ietf-ipr@ietf.org.