mirror of https://github.com/M66B/FairEmail.git
Check folder open on IMAP deleted check
This commit is contained in:
parent
d3da41cf38
commit
c233825a28
|
@ -4001,6 +4001,8 @@ class Core {
|
||||||
List<Message> deleted = new ArrayList<>();
|
List<Message> deleted = new ArrayList<>();
|
||||||
for (int i = 0; i < imessages.length; i++) {
|
for (int i = 0; i < imessages.length; i++) {
|
||||||
state.ensureRunning("Sync/IMAP/delete");
|
state.ensureRunning("Sync/IMAP/delete");
|
||||||
|
if (!ifolder.isOpen())
|
||||||
|
throw new FolderClosedException(ifolder);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (perform_expunge && imessages[i].isSet(Flags.Flag.DELETED))
|
if (perform_expunge && imessages[i].isSet(Flags.Flag.DELETED))
|
||||||
|
|
Loading…
Reference in New Issue