Blocking senders is a free feature

This commit is contained in:
M66B 2023-02-27 21:47:14 +01:00
parent 9b0397efee
commit 6a41ed95c9
1 changed files with 10 additions and 9 deletions

View File

@ -4946,19 +4946,20 @@ class Core {
if (account.protocol == EntityAccount.TYPE_IMAP && folder.read_only)
return;
if (!ActivityBilling.isPro(context))
return;
boolean pro = ActivityBilling.isPro(context);
DB db = DB.getInstance(context);
try {
boolean executed = false;
for (EntityRule rule : rules)
if (rule.matches(context, message, headers, html)) {
rule.execute(context, message);
executed = true;
if (rule.stop)
break;
}
if (pro)
for (EntityRule rule : rules)
if (rule.matches(context, message, headers, html)) {
rule.execute(context, message);
executed = true;
if (rule.stop)
break;
}
if (EntityFolder.INBOX.equals(folder.type))
if (message.from != null) {