I'm trying to fetch some email info from gmail using imap like this
"(BODY.PEEK[HEADER.FIELDS (subject from date)] X-GM-MSGID X-GM-LABELS X-GM-THRID)"
The problem is that it doesn't work well with special and accented characters. For example,
Stéphane Maniaci
is rendered as
=?ISO-8859-1?Q?St=E9phane_Maniaci?=
How do I tell Gmail to return the strings with an encoding of my choice, say I want Charset to be UTF-8.
How to adjust that in the IMAP command I mentioned above?