MBOX-Line: From tss at iki.fi  Thu May 13 02:15:45 2010
To: imap-protocol@u.washington.edu
From: Timo Sirainen <tss@iki.fi>
Date: Fri Jun  8 12:34:43 2018
Subject: [Imap-protocol] LIST wildcards with mUTF-7
Message-ID: <BE2DBB74-CB0F-46D3-A638-6E4F3924569F@iki.fi>

I just added some code that supports listing mailboxes with UTF-8 input. Pretty soon I discovered a problem. For example I have two mailboxes:

p? = p&AOQ-
p?? = p&AOQA5A-

Now, if I try to list "p?*" I'd expect this to match both mailboxes, but it gets converted to "p&AOQ-*", so it won't match the second one. Maybe IMAP servers should be converting the names to UTF-8 internally and match only after that?


