mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Folder unexpectedly closed
This commit is contained in:
parent
5adc82f57b
commit
26c89d7bd5
1 changed files with 5 additions and 9 deletions
|
@ -182,7 +182,7 @@ class Core {
|
|||
EntityAccount account, EntityFolder folder, List<TupleOperationEx> ops,
|
||||
Store istore, Folder ifolder,
|
||||
State state, long serial)
|
||||
throws JSONException {
|
||||
throws JSONException, FolderClosedException {
|
||||
try {
|
||||
Log.i(folder.name + " start process");
|
||||
|
||||
|
@ -217,17 +217,13 @@ class Core {
|
|||
|
||||
if (account.protocol == EntityAccount.TYPE_IMAP &&
|
||||
!folder.local &&
|
||||
ifolder != null && !ifolder.isOpen()) {
|
||||
EntityLog.log(context, account.name + "/" + folder.name + " is closed");
|
||||
return;
|
||||
}
|
||||
ifolder != null && !ifolder.isOpen())
|
||||
throw new FolderClosedException(ifolder, account.name + "/" + folder.name + " unexpectedly closed");
|
||||
|
||||
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;
|
||||
}
|
||||
ifolder != null && !ifolder.isOpen())
|
||||
throw new FolderClosedException(ifolder, account.name + "/" + folder.name + " unexpectedly closed");
|
||||
|
||||
// Fetch most recent copy of message
|
||||
EntityMessage message = null;
|
||||
|
|
Loading…
Reference in a new issue