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