Check folder open on IMAP deleted check

This commit is contained in:
M66B 2024-03-03 21:06:39 +01:00
parent d3da41cf38
commit c233825a28
1 changed files with 2 additions and 0 deletions

View File

@ -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))