First check for inbox

pull/174/head
M66B 5 years ago
parent a7851fdd2c
commit f7023f0c5a

@ -283,6 +283,10 @@ public class EntityFolder extends EntityOrder implements Serializable {
}
static String getType(String[] attrs, String fullName, boolean selectable) {
// https://tools.ietf.org/html/rfc3501#section-5.1
if ("INBOX".equals(fullName.toUpperCase()))
return INBOX;
// https://www.iana.org/assignments/imap-mailbox-name-attributes/imap-mailbox-name-attributes.xhtml
for (String attr : attrs) {
if ((selectable && "\\Noselect".equals(attr)) || "\\NonExistent".equals(attr))
@ -295,10 +299,6 @@ public class EntityFolder extends EntityOrder implements Serializable {
}
}
// https://tools.ietf.org/html/rfc3501#section-5.1
if ("INBOX".equals(fullName.toUpperCase()))
return INBOX;
return USER;
}

Loading…
Cancel
Save