ietf-corpus

rfc-6532

Internationalized Email Headers

A. Yang, S. Steele, N. Freed
date2012-02 streamIETF areaapp wgeai statusPROPOSED STANDARD pages11 canonicalhttps://www.rfc-editor.org/rfc/rfc6532 doi10.17487/RFC6532 errataview
Internet mail was originally limited to 7-bit ASCII. MIME added support for the use of 8-bit character sets in body parts, and also defined an encoded-word construct so other character sets could be used in certain header field values. However, full internationalization of electronic mail requires additional enhancements to allow the use of Unicode, including characters outside the ASCII repertoire, in mail addresses as well as direct use of Unicode in header fields like "From:", "To:", and "Subject:", without requiring the use of complex encoded-word constructs. This document specifies an enhancement to the Internet Message Format and to MIME that allows use of Unicode in mail addresses and most header field content. This specification updates Section 6.4 of RFC 2045 to eliminate the restriction prohibiting the use of non-identity content-transfer- encodings on subtypes of "message/". [STANDARDS-TRACK]

obsoletes

updates

Extracted elements (25)

design-rationale §3.6

Encoded-words (RFC 2047) are deprecated for this extension because they only work in a subset of header locations, require complex processing, allow arbitrary charsets, and create significant error opportunities; direct UTF-8 is now available on most systems and is simpler.

email

design-rationale §3.1

NFC is preferred over NFKC because the design goal of internationalization is to let people spell their names correctly; NFKC's compatibility decompositions can destroy distinctions needed for some names. Since mailbox local parts often reflect personal names, name-preserving normalization is load-bearing.

email

design-rationale §3.5

RFC 2045's prohibition on content-transfer-encodings for message/ subtypes is relaxed because message/global may need encoding when downgraded from 8-bit to 7-bit per RFC 6152. Allowing nested encodings was deemed less complex than alternative approaches even though multiple encoding levels may occur in practice.

email

design-rationale §1

This specification is based on a native, end-to-end UTF-8 model requiring an 8-bit-clean transport environment. Support for carriage across legacy 7-bit infrastructure and processing by 7-bit receivers is explicitly out of scope and requires separate mechanisms.

email

interoperability-note §3.7

A MIME-compliant system that does not recognize message/global is specified to treat it as 'application/octet-stream' per RFC 2046 Section 5.2.4, meaning the structure is opaque rather than parsed as a nested message.

email

interoperability-note §3.3

Implementers generating Message-IDs MAY prefer restricting output to ASCII to ease construction of 'In-reply-to:' and 'References:' threading headers in mailing lists where some senders use internationalized addresses and others do not.

email

interoperability-note §3.7

When embedding or returning internationalized content, senders may choose message/global (preserve content) or down-convert to message/rfc822. Systems unaware of internationalized headers will treat message/global as an unknown attachment, while systems that understand it provide superior functionality.

email

normative-requirement §3.7 SHOULD

An 8-bit or binary content-transfer-encoding SHOULD be used for message/global unless this media type is sent over a 7-bit-only transport.

email

normative-requirement §3.6 SHOULD NOT

Encoded-words (RFC 2047) SHOULD NOT be used when generating header fields for messages employing this extension; agents MAY convert encoded-word use to direct UTF-8 when incorporating material from another message.

email

normative-requirement §3 MUST

Header field names themselves must consist of ASCII characters only; only the bodies of header fields are allowed to contain Unicode characters.

email

normative-requirement §3.7 MUST

If a message/global object is sent to a 7-bit-only system, it MUST have an appropriate content-transfer-encoding applied.

email

normative-requirement §3.7 MUST

Internationalized messages in message/global format MUST only be transmitted as authorized by RFC 6531 (SMTPUTF8 extension) or within a non-SMTP environment that supports these messages.

email, sctp

normative-requirement §3.1 SHOULD NOT

NFKC normalization SHOULD NOT be used because it may lose information needed to correctly spell some names in unusual circumstances.

email

normative-requirement §3.1 SHOULD

Normalization form NFC SHOULD be used for UTF-8 content in header fields, to support correct spelling of personal names and mailbox local parts.

email

normative-requirement §3.6 MUST NOT

Processors that elect to decode encoded-words MUST NOT generate syntactically invalid fields, because replacing an encoded-word with its decoded UTF-8 equivalent may be syntactically invalid.

email

normative-requirement §3.4 MUST

Section 2.1.1 of RFC 5322's line length limit is changed from 998 characters to 998 octets, since UTF-8 multi-byte characters make octets and characters non-equivalent.

email

protocol-element §3.2

RFC 5322 ABNF rules VCHAR, ctext, atext, qtext, text, and dtext are each extended with '=/ UTF8-non-ascii', allowing UTF-8 in unstructured text, atoms (including address local parts and Message-IDs), quoted strings, and domains.

email

protocol-element §3.7

The message/global media type is defined for Internet messages containing 8-bit UTF-8 header values or 8-bit UTF-8 values in body-part header fields. Its content is otherwise identical to message/rfc822. Any content-transfer-encoding is permitted; file extension '.u8msg' is suggested.

email

protocol-element §3.1

UTF8-non-ascii is defined as UTF8-2 / UTF8-3 / UTF8-4 (per Section 4 of RFC 3629), and is the terminal used throughout ABNF extensions to allow non-ASCII characters in header field values.

email

registry §5

IANA updated the registration for the message/global MIME type using the registration form in Section 3.7. The subtype is 'global' under the 'message' type, with any content-transfer-encoding permitted and suggested file extension '.u8msg'.

email, registry

security-consideration §4

Because UTF-8 multi-byte sequences make addresses and header values longer, MDA processes that parse, store, or handle email addresses or local parts must take extra care not to overflow buffers, truncate addresses, exceed storage allotments, or use partial lengths when comparing addresses.

email, security

security-consideration §4

The security impact of UTF-8 headers on email signature systems (DKIM, S/MIME, OpenPGP) is discussed in Section 14 of RFC 6530. Certificates for users with both non-ASCII and ASCII mailbox addresses may carry both as identities, which is supported by PKIX and OpenPGP but may introduce user-interface issues.

email, security, crypto, pkix

security-consideration §4

UTF-8 provides many ways to represent visually equivalent characters or sequences; the normalization process in Section 3.1 (NFC) is recommended to minimize spoofing and equivalence attacks. Implementers are directed to the security considerations in RFC 3629 for details.

email, security

wire-format §3.4

Line length limit for internationalized email headers is 998 octets (excluding CRLF), changed from the RFC 5322 character-based limit. The 78-character soft limit remains defined in characters (display-width), not octets.

email

wire-format §3.1

UTF-8 header field values are transmitted as raw 8-bit octets encoded per RFC 3629 (UTF8-2/3/4 sequences), requiring an 8-bit-clean channel; 7-bit downgrade requires wrapping the message/global part with a content-transfer-encoding.

email