IMAP mailboxes are case-sensitive

b/15694346

Change-Id: I4a59979f40d6118bb9c7e27069ea228ba783a4c3
This commit is contained in:
Tony Mantler 2014-07-21 10:24:32 -07:00
parent cd118b3b61
commit 14a64cef86

View File

@ -538,8 +538,7 @@ public class LegacyConversions {
if (mailboxName == null || mailboxName.length() == 0) { if (mailboxName == null || mailboxName.length() == 0) {
return Mailbox.TYPE_MAIL; return Mailbox.TYPE_MAIL;
} }
String lowerCaseName = mailboxName.toLowerCase(); Integer type = sServerMailboxNames.get(mailboxName);
Integer type = sServerMailboxNames.get(lowerCaseName);
if (type != null) { if (type != null) {
return type; return type;
} }