rfc-5957

Display-Based Address Sorting for the IMAP4 SORT Extension

D. Karp
date2010-07 streamIETF areaapp wgmorg statusPROPOSED STANDARD pages5 canonicalhttps://www.rfc-editor.org/rfc/rfc5957 doi10.17487/RFC5957
This document describes an IMAP protocol extension enabling server- side message sorting on the commonly displayed portion of the From and To header fields. [STANDARDS-TRACK]

updates

Extracted elements (12)

design-rationale §7

DISPLAYFROM and DISPLAYTO sort on the full decoded addr-name and do not attempt locale- or language-dependent parsing to extract semantically meaningful substrings such as a surname, keeping the implementation simple and language-neutral.

email

design-rationale §1

The existing FROM and TO sort criteria in RFC 5256 sort lexically on addr-mailbox, which does not match what users typically see. DISPLAYFROM/DISPLAYTO address this by sorting on addr-name (the display name), providing a user-visible ordering.

email

interoperability-note §1

This document updates RFC 5256 (SORT). A server advertising SORT=DISPLAY must support the full SORT extension in addition to the two new DISPLAYFROM and DISPLAYTO criteria.

email

normative-requirement §4 MUST

A message's sort value under DISPLAYFROM and DISPLAYTO orderings MUST be derived from the IMAP envelope structure resulting from a FETCH ENVELOPE on the message.

email

normative-requirement §7 MUST

The active RFC 4790 collation as per RFC 5255 MUST be used when sorting the string-based DISPLAYFROM and DISPLAYTO sort criteria.

email

normative-requirement §3 MUST

When the addr-name is non-NIL, RFC 5255 Section 4.6 procedure MUST be applied: decode any RFC 2047 encoded-words and convert the result into a charset valid for the active RFC 4790 collation (default UTF-8).

email

protocol-element §4

DISPLAYFROM and DISPLAYTO are two new sort criteria for the IMAP SORT extension. DISPLAYFROM sorts on the first From header address's display name; DISPLAYTO sorts on the first To header address's display name.

email

protocol-element §3

The DISPLAY sort value for an address is determined by a priority chain: (1) decoded addr-name if non-NIL and non-empty, (2) addr-mailbox@addr-host if both non-NIL, (3) addr-mailbox if non-NIL, (4) empty string.

email

protocol-element §1

The SORT=DISPLAY capability indicates a server supports the full SORT extension as well as both the DISPLAYFROM and DISPLAYTO sort criteria. It is advertised in the server's CAPABILITY response.

email

registry §8

This document registers the SORT=DISPLAY capability in the IMAP capabilities registry. IMAP capabilities are registered by publishing a Standards Track or IESG-approved Experimental RFC.

email, registry

security-consideration §6

This document defines an additional IMAP4 capability and does not change the underlying security considerations of IMAP. No new security issues are introduced.

email, security

wire-format §5

The ABNF extension adds 'SORT=DISPLAY' to the capability non-terminal and adds 'DISPLAYFROM' / 'DISPLAYTO' to the sort-key non-terminal, as defined in RFC 5234.

email