1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-03 10:16:45 +00:00

First check for inbox

This commit is contained in:
M66B 2020-02-06 11:19:44 +01:00
parent a7851fdd2c
commit f7023f0c5a

View file

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