mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-31 18:11:03 +01:00
Added rule noop
This commit is contained in:
@@ -94,6 +94,7 @@ public class EntityRule {
|
||||
static final int TYPE_COPY = 7;
|
||||
static final int TYPE_SNOOZE = 8;
|
||||
static final int TYPE_IGNORE = 9;
|
||||
static final int TYPE_NOOP = 10;
|
||||
|
||||
static final String ACTION_AUTOMATION = BuildConfig.APPLICATION_ID + ".AUTOMATION";
|
||||
static final String EXTRA_RULE = "rule";
|
||||
@@ -265,6 +266,8 @@ public class EntityRule {
|
||||
Log.i("Executing rule=" + type + ":" + name + " message=" + message.id);
|
||||
|
||||
switch (type) {
|
||||
case TYPE_NOOP:
|
||||
return true;
|
||||
case TYPE_SEEN:
|
||||
return onActionSeen(context, message, true);
|
||||
case TYPE_UNSEEN:
|
||||
|
||||
Reference in New Issue
Block a user