Folders that cannot hold messages are not selectable

pull/161/head
M66B 5 years ago
parent e42c941300
commit d02679915c

@ -885,7 +885,8 @@ class Core {
boolean subscribed = subscription.contains(fullName);
String[] attr = ((IMAPFolder) ifolder).getAttributes();
String type = EntityFolder.getType(attr, fullName, false);
boolean selectable = !Arrays.asList(attr).contains("\\Noselect");
boolean selectable = !Arrays.asList(attr).contains("\\Noselect") &&
((ifolder.getType() & IMAPFolder.HOLDS_MESSAGES) != 0);
if (EntityFolder.INBOX.equals(type) || fullName.equals(childName))
childName = null;

Loading…
Cancel
Save