Check folder open on IMAP deleted check

pull/214/head
M66B 10 months ago
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…
Cancel
Save