From 0e47c35bc16f4d417232fa08f0bfab382968625f Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 13 Nov 2021 20:52:56 +0100 Subject: [PATCH] Prevent rule execution for read-only folders --- app/src/main/java/eu/faircode/email/Core.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index e074a4271a..06ac06c71d 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -4221,6 +4221,8 @@ class Core { EntityAccount account, EntityFolder folder, EntityMessage message, List rules) { + if (account.protocol == EntityAccount.TYPE_IMAP && folder.read_only) + return; if (!ActivityBilling.isPro(context)) return;