MBOX-Line: From petite_abeille at mac.com  Sun Nov 20 06:48:40 2011
To: imap-protocol@u.washington.edu
From: Petite Abeille <petite_abeille@mac.com>
Date: Fri Jun  8 12:34:47 2018
Subject: [Imap-protocol] [noob] fetch envelope charset?
Message-ID: <F34CF1AC-E2DE-46C6-9B03-B8E71B993164@mac.com>

Hello,

Given a fetch envelope command, what character set encoding can the response be in?

For example, say the subject is originally encoded as =?iso-8859-1?Q?H=F3la!?=, which is H?la! in UTF-8.

What can one put in the subject part of the envelope?

Does it have to be the original value (=?iso-8859-1?Q?H=F3la!?=)?

Could it be the literal UTF-8 value (H?la!)?

Could it be the q-encoded UTF-8 value (=?UTF-8?Q?H=C3=83=C2=B3la!?=)?

Could it be the UTF-7 encoded  UTF-8 value (H+APM-la+ACE-)?

I'm really confused about what character set encoding IMAP is expecting and where. Is there perhaps a FAQ to complement the RFC that summarizes what applies where?

Thanks in advance.





