POP3: Fix logic to delete messages on the server

This commit is contained in:
cketti 2023-01-26 12:22:37 +01:00
parent 5220c66d61
commit b1426e5e84

View file

@ -2095,7 +2095,7 @@ public class MessagingController {
// Nothing to do on the remote side
} else if (!syncedMessageUids.isEmpty()) {
if (account.getDeletePolicy() == DeletePolicy.ON_DELETE) {
if (doNotMoveToTrashFolder) {
if (doNotMoveToTrashFolder || !backend.getSupportsTrashFolder()) {
queueDelete(account, folderId, syncedMessageUids);
} else if (account.isMarkMessageAsReadOnDelete()) {
queueMoveOrCopy(account, folderId, trashFolderId,