am 14a64cef: IMAP mailboxes are case-sensitive

* commit '14a64cef863ae7b9b0cc7ec5542bfded0413c683':
  IMAP mailboxes are case-sensitive
This commit is contained in:
Tony Mantler 2014-07-24 18:02:48 +00:00 committed by Android Git Automerger
commit 30ab1459a2

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;
} }