mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-04 06:20:26 +00:00
Check if POP3 inbox closed
This commit is contained in:
parent
ec69dc6680
commit
c1ba2a2697
1 changed files with 10 additions and 2 deletions
|
@ -216,8 +216,16 @@ class Core {
|
||||||
throw new IllegalArgumentException("Invalid folder=" + folder.id + "/" + op.folder);
|
throw new IllegalArgumentException("Invalid folder=" + folder.id + "/" + op.folder);
|
||||||
|
|
||||||
if (account.protocol == EntityAccount.TYPE_IMAP &&
|
if (account.protocol == EntityAccount.TYPE_IMAP &&
|
||||||
!folder.local && ifolder != null && !ifolder.isOpen()) {
|
!folder.local &&
|
||||||
Log.w(folder.name + " is closed");
|
ifolder != null && !ifolder.isOpen()) {
|
||||||
|
EntityLog.log(context, account.name + "/" + folder.name + " is closed");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (account.protocol == EntityAccount.TYPE_POP &&
|
||||||
|
EntityFolder.INBOX.equals(folder.type) &&
|
||||||
|
ifolder != null && !ifolder.isOpen()) {
|
||||||
|
EntityLog.log(context, account.name + "/" + folder.name + " is closed");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue