1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-23 14:41:08 +00:00

Skip blocklist move for trash/junk folder

This commit is contained in:
M66B 2021-06-28 08:21:40 +02:00
parent 4683f43b7c
commit 4fe39328dc

View file

@ -3410,7 +3410,10 @@ class Core {
runRules(context, imessage, account, folder, message, rules);
if (!have && message.blocklist != null && message.blocklist) {
if (!have &&
!EntityFolder.TRASH.equals(folder.type) &&
!EntityFolder.JUNK.equals(folder.type) &&
message.blocklist != null && message.blocklist) {
boolean use_blocklist = prefs.getBoolean("use_blocklist", false);
if (use_blocklist) {
EntityLog.log(context, "Block list" +