2. The Problem
SMTP as defined in RFC 821 limits the sending of Internet Mail to US-ASCII [5] characters. As the Internet has grown to include non-English correspondents, the need to communicate with character sets other than US-ASCII has prompted many vendors and users to extend SMTP or RFC 822 to use non-ASCII character sets. Common approaches are to send 7 bit national variant ISO 646 character sets over current RFC822/SMTP, to extend SMTP and RFC822 to use 8bit ISO 8859 character sets, and to use proprietary PC character sets.
A third approach is used for Japanese mail. Japanese characters are represented by pairs of octets with the high order bit cleared. Switching between 14 bit character sets and 7 bit character sets is indicated within the message by ISO 2022 escape sequences.
So long as these implementations can communicate without intermediate transformations and have a loose private agreement on the use of a specific character set without tagging, basic mail service can be provided.
In the transition to the negotiated 8bit ESMTP/MIME environment, it is important that mail sent by a currently non-conforming user can be read by another non-conforming user. This existing functionality is reduced by conversion from 8bit text to text encoded in unreadable Base-64 or "garbled" text encoded in quoted printable.
There are several interesting non-interoperable cases that currently exist in non US-ASCII mail and several new ones likely to emerge in a transition to 8bit/MIME. Below is a listing of the transition-to-mime cases. Only solutions to (4) in the context of a translating gateway are discussed in this memo.
\ Receiver
\ 7bit 8bit MIME/
Sender \| only | transparent | ESMTP
----------------------------------------
7bit only | (1) | (1) | (1)
----------------------------------------
8bit transparent | (2) | (3) | (4)
----------------------------------------
MIME/ESMTP | (5) | (5) | (6)
(1) 7Bit non-MIME sender to 7bit, MIME, or 8bit transparent receiver
This will continue to work unchanged with nationally varient ISO 646 or ISO 2022 character set shifting if an external "out of band" agreement exists between the sender and the receiver. A 7bit to 8bit/ESMTP gateway need not alter the content of this message.
(2) 8bit sender to 7bit non-MIME receiver
The receiver will receive bit-stripped mail which results in the mis-interpretation of the data and the wrong character being displayed or printed. Mail sent using languages where most characters are in the US-ASCII subset of ISO 8859 may be somewhat readable.
(3) 8bit transparent sender to 8bit transparent receiver
Will work if an external agreement "out of band" to use a particular character set without tagging exists between the sender and the receiver.
(4) 8bit transparent sender to MIME/ESMTP conformant receiver
Will work if a reasonable upgrade path is provided via gateways, the indicated character set tag inserted by the gateway is correct and the receiver supports the character set chosen by the sender. This case is the focus of this memo.
(5) MIME/ESMTP sender to non-MIME 7bit receiver
Because the ESMTP/MIME sender cannot know if the receiver will understand 8bits, the sender will encode the text into base-64 or quoted-printable which may be considered "garbled" by the receiver. To provide a useful downgrade path the gateway must have some knowledge about the capabilities of the receiver. When the character set can be clearly identified, techniques like the menmonic MNEM encoding described in RFC 1345 may be helpful in this case.
(6) MIME/ESMTP sender to MIME/ESMTP receiver
Interoperability will be attained provided the receiver supports the character set chosen by the sender.