mirror of https://github.com/M66B/FairEmail.git
Skip folders with a messaging exception
This commit is contained in:
parent
6328d53215
commit
d2961dbf75
|
@ -940,6 +940,11 @@ public class ServiceSynchronize extends LifecycleService {
|
|||
final IMAPFolder ifolder = (IMAPFolder) istore.getFolder(folder.name);
|
||||
try {
|
||||
ifolder.open(Folder.READ_WRITE);
|
||||
} catch (MessagingException ex) {
|
||||
// Including ReadOnlyFolderException
|
||||
db.folder().setFolderState(folder.id, null);
|
||||
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex));
|
||||
continue;
|
||||
} catch (Throwable ex) {
|
||||
db.folder().setFolderError(folder.id, Helper.formatThrowable(ex));
|
||||
throw ex;
|
||||
|
|
Loading…
Reference in New Issue