Warning, /pim/messagelib/messagecomposer/src/COMPLIANCE is written in an unsupported language. File is not indexed.
0001 NOTE: This document is outdated. It shows mostly what was planned to be done, 0002 but 8bit encoding is mostly untested at this time. There is no way currently 0003 to find out if a MailTransport::Transport supports 8bit or not. 0004 0005 0006 0007 How Content-Transfer-Encoding (CTE) is handled: 0008 -------------------------------------------- 0009 (see RFC2045) 0010 * For text body and text attachments: 0011 1) 7bit if text fits. 0012 2) 8bit if text fits and transport supports it. 0013 3) quoted-printable or base 64 otherwise, depending on which is most space-efficient. 0014 * For binary attachments: 0015 1) base64 0016 * For multipart/* (except signed/encrypted): 0017 1) 7bit if everything fits. 0018 2) 8bit if allowed by transport. 0019 * For message/rfc822 (encapsulated messages): 0020 1) 7bit if everything fits. 0021 2) 8bit if allowed by transport. 0022 TODO what if encapsulated message is 8bit but our transport is 7bit??? 0023 * For multipart/signed (see RFC3156): 0024 1) 7bit if everything fits 0025 2) quoted-printable or base64 if: 0026 - has trailing whitespace 0027 - a line starts with 'From ' 0028 * For multipart/encrypted (but not signed): 0029 Same as for multipart/*. 0030 0031 0032 0033 References: 0034 -------------- 0035 RFC5322: Internet Message Format (P. Resnick, Ed., October 2008) 0036 RFC2045: Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies 0037 (N. Freed, N. Borenstein, November 1996) 0038 RFC2046: Multipurpose Internet Mail Extensions (MIME) Part Two: Media Types 0039 (N. Freed N. Borenstein, November 1996) 0040 RFC2047: MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for 0041 Non-ASCII Text (K. Moore, November 1996) 0042 RFC3156: MIME Security with OpenPGP (M. Elkins, D. Del Torto, R. Levien, T. Roessler, August 2001) 0043