From 6093b18c1905a9eb9a04bf5760113bd4f7631930 Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 8 Apr 2020 16:24:04 +0200 Subject: [PATCH] POP3 cannot move messages --- app/src/main/java/eu/faircode/email/Core.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index 3dbdfa5013..ef93e3e4b7 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -3205,6 +3205,7 @@ class Core { List wactions = new ArrayList<>(); if (notify_trash && + message.accountProtocol == EntityAccount.TYPE_IMAP && db.folder().getFolderByType(message.account, EntityFolder.TRASH) != null) { Intent trash = new Intent(context, ServiceUI.class) .setAction("trash:" + message.id) @@ -3222,6 +3223,7 @@ class Core { } if (notify_junk && + message.accountProtocol == EntityAccount.TYPE_IMAP && db.folder().getFolderByType(message.account, EntityFolder.JUNK) != null) { Intent junk = new Intent(context, ServiceUI.class) .setAction("junk:" + message.id) @@ -3238,6 +3240,7 @@ class Core { } if (notify_archive && + message.accountProtocol == EntityAccount.TYPE_IMAP && db.folder().getFolderByType(message.account, EntityFolder.ARCHIVE) != null) { Intent archive = new Intent(context, ServiceUI.class) .setAction("archive:" + message.id) @@ -3254,7 +3257,8 @@ class Core { wactions.add(actionArchive.build()); } - if (notify_move) { + if (notify_move && + message.accountProtocol == EntityAccount.TYPE_IMAP) { EntityAccount account = db.account().getAccount(message.account); if (account != null && account.move_to != null) { EntityFolder folder = db.folder().getFolder(account.move_to);