MBOX-Line: From jkt at flaska.net  Thu Feb 20 09:53:21 2014
To: imap-protocol@u.washington.edu
From: =?iso-8859-1?Q?Jan_Kundr=E1t?= <jkt@flaska.net>
Date: Fri Jun  8 12:34:52 2018
Subject: [Imap-protocol] MUTF7, UTF8, and Unicode flags
In-Reply-To: <57f94285-8e26-4eb1-9556-826fde4edd89@gulbrandsen.priv.no>
References: <57f94285-8e26-4eb1-9556-826fde4edd89@gulbrandsen.priv.no>
Message-ID: <adb5d342-be87-4b56-b4de-8a9ef1f9a243@flaska.net>

On Thursday, 20 February 2014 18:10:01 CEST, Arnt Gulbrandsen wrote:
> just use UTF8 for mailbox names

Seriously? This is going to break stuff. You might argue that people 
creating mailboxes named "&U,BTFw-" are unlikely :), but it's a valid 
string both in UTF-8 and in the modified UTF-7 encoding -- except that the 
two meanings are very different.

Implementing imap-utf7 is not hard, and chances are that there are 
libraries which one can easily use in almost every language. Sending UTF-8 
where the standard is absolutely clear on what to do is just wrong.

As for the flags/keywords, there's unfortunately no standard for that. 
Thunerbird is using modified UTF-7 for them [1]. There's a proposal [2] for 
using the METADATA extension for mapping ASCII keywords to Unicode names, 
but I don't think it was ever standardized (and perhaps not implemented, 
either).

Cheers,
Jan

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=650623
[2] 
http://dovecot.2317879.n4.nabble.com/Gmail-like-labels-three-years-later-td41128.html

-- 
Trojit?, a fast Qt IMAP e-mail client -- http://trojita.flaska.net/

