mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 00:21:10 +00:00
Blocking senders is a free feature
This commit is contained in:
parent
9b0397efee
commit
6a41ed95c9
1 changed files with 10 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue