mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
First check for inbox
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user