Prevent rule execution for read-only folders

This commit is contained in:
M66B 2021-11-13 20:52:56 +01:00
parent 9edafa09a3
commit 0e47c35bc1
1 changed files with 2 additions and 0 deletions

View File

@ -4221,6 +4221,8 @@ class Core {
EntityAccount account, EntityFolder folder, EntityMessage message, EntityAccount account, EntityFolder folder, EntityMessage message,
List<EntityRule> rules) { List<EntityRule> rules) {
if (account.protocol == EntityAccount.TYPE_IMAP && folder.read_only)
return;
if (!ActivityBilling.isPro(context)) if (!ActivityBilling.isPro(context))
return; return;