|
|
@ -4946,12 +4946,13 @@ class Core {
|
|
|
|
|
|
|
|
|
|
|
|
if (account.protocol == EntityAccount.TYPE_IMAP && folder.read_only)
|
|
|
|
if (account.protocol == EntityAccount.TYPE_IMAP && folder.read_only)
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
if (!ActivityBilling.isPro(context))
|
|
|
|
|
|
|
|
return;
|
|
|
|
boolean pro = ActivityBilling.isPro(context);
|
|
|
|
|
|
|
|
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
DB db = DB.getInstance(context);
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
boolean executed = false;
|
|
|
|
boolean executed = false;
|
|
|
|
|
|
|
|
if (pro)
|
|
|
|
for (EntityRule rule : rules)
|
|
|
|
for (EntityRule rule : rules)
|
|
|
|
if (rule.matches(context, message, headers, html)) {
|
|
|
|
if (rule.matches(context, message, headers, html)) {
|
|
|
|
rule.execute(context, message);
|
|
|
|
rule.execute(context, message);
|
|
|
|