* commit '5ae1599a839e6dd2298f97740707b7f435acacd0': Fix subfolders of the inbox.
This commit is contained in:
commit
70f807fb64
@ -321,6 +321,11 @@ public class ImapStore extends Store {
|
|||||||
String parentPath = null;
|
String parentPath = null;
|
||||||
if (delimiterIdx != -1) {
|
if (delimiterIdx != -1) {
|
||||||
parentPath = path.substring(0, delimiterIdx);
|
parentPath = path.substring(0, delimiterIdx);
|
||||||
|
if (ImapConstants.INBOX.equalsIgnoreCase(parentPath)) {
|
||||||
|
// The Inbox is added as a special case, and always in all caps. In reality,
|
||||||
|
// it might not be in all caps, this folder's parent path might have mixed case.
|
||||||
|
parentPath = ImapConstants.INBOX;
|
||||||
|
}
|
||||||
final ImapFolder parentFolder = mailboxes.get(parentPath);
|
final ImapFolder parentFolder = mailboxes.get(parentPath);
|
||||||
final Mailbox parentMailbox = (parentFolder == null) ? null : parentFolder.mMailbox;
|
final Mailbox parentMailbox = (parentFolder == null) ? null : parentFolder.mMailbox;
|
||||||
if (parentMailbox != null) {
|
if (parentMailbox != null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user