TOC 
Message Organization Working GroupD. Karp
Internet-DraftZimbra
Updates: 5256 (if approved)October 18, 2009
Intended status: Standards Track 
Expires: April 21, 2010 


Display-based Address Sorting for the IMAP4 SORT Extension
draft-ietf-morg-sortdisplay-02

Status of this Memo

This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and 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 April 21, 2010.

Copyright Notice

Copyright (c) 2009 IETF Trust and the persons identified as the document authors. All rights reserved.

This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents in effect on the date of publication of this document (http://trustee.ietf.org/license-info). Please review these documents carefully, as they describe your rights and restrictions with respect to this document.

Abstract

This document describes an IMAP protocol extension enabling server-side message sorting based on the commonly-displayed portion of the From and To header fields.



Table of Contents

1.  Conventions Used in This Document
2.  Introduction
3.  DISPLAY Sort Value for an Address
4.  The DISPLAYFROM and DISPLAYTO Sort Keys
5.  Formal Syntax
6.  Security Considerations
7.  Internationalization Considerations
8.  IANA Considerations
9.  Normative References
§  Author's Address




 TOC 

1.  Conventions Used in This Document

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] (Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” March 1997.).



 TOC 

2.  Introduction

The [SORT] (Crispin, M. and K. Murchison, “Internet Message Access Protocol - SORT and THREAD Extensions,” June 2008.) extension to the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) protocol provides a means for server-based sorting of messages. It defines a set of sort criteria and the mechanism for determining the sort value of a message for each such ordering.

The [SORT] (Crispin, M. and K. Murchison, “Internet Message Access Protocol - SORT and THREAD Extensions,” June 2008.) extension's FROM ordering sorts messages lexically on the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) addr-mailbox of the first mailbox in the From header. Likewise, its TO ordering sorts on the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) addr-mailbox of the first address in the message's To header. This document provides two alternate orderings, DISPLAYFROM and DISPLAYTO, which sort messages lexically based on the first From or To address's [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) addr-name (generally the same as its [RFC5322] (Resnick, P., Ed., “Internet Message Format,” October 2008.) display-name), when present.

A server that supports the full [SORT] (Crispin, M. and K. Murchison, “Internet Message Access Protocol - SORT and THREAD Extensions,” June 2008.) extension as well as the DISPLAYFROM and DISPLAYTO sort criteria indicates this by returning "SORT=DISPLAY" in its CAPABILITY response.



 TOC 

3.  DISPLAY Sort Value for an Address

For the purposes of the sort keys defined in this document, the sort value for an [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) address structure is defined as follows:



 TOC 

4.  The DISPLAYFROM and DISPLAYTO Sort Keys

This document introduces two new [SORT] (Crispin, M. and K. Murchison, “Internet Message Access Protocol - SORT and THREAD Extensions,” June 2008.) sort-keys, DISPLAYFROM and DISPLAYTO.

A message's sort value under the DISPLAYFROM ordering MUST be derived as follows from the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) env-from value of the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) envelope structure resulting from a FETCH ENVELOPE on the message:

A message's sort value under the DISPLAYTO ordering MUST be derived as follows from the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) env-to value of the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) envelope structure resulting from a FETCH ENVELOPE on the message:



 TOC 

5.  Formal Syntax

The following syntax specification uses the Augmented Backus-Naur Form (ABNF) notation as specified in [RFC4234] (Crocker, D., Ed. and P. Overell, “Augmented BNF for Syntax Specifications: ABNF,” October 2005.). [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) defines the non-terminal "capability" and [SORT] (Crispin, M. and K. Murchison, “Internet Message Access Protocol - SORT and THREAD Extensions,” June 2008.) defines "sort-key".

capability    =/ "SORT=DISPLAY"

sort-key      =/ "DISPLAYFROM" | "DISPLAYTO"


 TOC 

6.  Security Considerations

This document defines an additional IMAP4 capability. As such, it does not change the underlying security considerations of [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.). The author believes that no new security issues are introduced with this additional IMAP4 capability.



 TOC 

7.  Internationalization Considerations

DISPLAYFROM and DISPLAYTO are string-based sort criteria. As stated in [SORT] (Crispin, M. and K. Murchison, “Internet Message Access Protocol - SORT and THREAD Extensions,” June 2008.), the collations mandated by I18NLEVEL=1 or I18NLEVEL=2 from [RFC5255] (Newman, C., Gulbrandsen, A., and A. Melnikov, “Internet Message Access Protocol Internationalization,” June 2008.) MUST be followed when sorting such strings.

The DISPLAYFROM and DISPLAYTO orderings sort on the full decoded [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) addr-name, when present. They do not attempt to parse this string in a locale- or language-dependent manner in order to determine and sort on some semantically meaningful substring such as the surname.



 TOC 

8.  IANA Considerations

[IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) capabilities are registered by publishing a standards track or IESG-approved experimental RFC. This document constitutes registration of the SORT=DISPLAY capability in the [IMAP] (Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” March 2003.) capabilities registry.



 TOC 

9. Normative References

[IMAP] Crispin, M., “INTERNET MESSAGE ACCESS PROTOCOL - VERSION 4rev1,” RFC 3501, March 2003 (TXT).
[RFC2047] Moore, K., “MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text,” RFC 2047, November 1996 (TXT, HTML, XML).
[RFC2119] Bradner, S., “Key words for use in RFCs to Indicate Requirement Levels,” BCP 14, RFC 2119, March 1997 (TXT, HTML, XML).
[RFC4234] Crocker, D., Ed. and P. Overell, “Augmented BNF for Syntax Specifications: ABNF,” RFC 4234, October 2005 (TXT, HTML, XML).
[RFC5255] Newman, C., Gulbrandsen, A., and A. Melnikov, “Internet Message Access Protocol Internationalization,” RFC 5255, June 2008 (TXT).
[RFC5322] Resnick, P., Ed., “Internet Message Format,” RFC 5322, October 2008 (TXT, HTML, XML).
[SORT] Crispin, M. and K. Murchison, “Internet Message Access Protocol - SORT and THREAD Extensions,” RFC 5256, June 2008 (TXT).


 TOC 

Author's Address

  Dan Karp
  Zimbra
  701 First St.
  Sunnyvale, CA 94089
  USA
Email:  dkarp@zimbra.com
URI:  http://www.zimbra.com