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:
parent
a7851fdd2c
commit
f7023f0c5a
1 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue