MCPcopy Create free account
hub / github.com/M66B/FairEmail / execute

Method execute

app/src/main/java/eu/faircode/email/EntityRule.java:640–647  ·  view source on GitHub ↗
(Context context, EntityMessage message, boolean browsed, String html)

Source from the content-addressed store, hash-verified

638 }
639
640 boolean execute(Context context, EntityMessage message, boolean browsed, String html) throws JSONException, IOException {
641 boolean executed = _execute(context, message, browsed, html);
642 if (this.id != null && executed) {
643 DB db = DB.getInstance(context);
644 db.rule().applyRule(id, new Date().getTime());
645 }
646 return executed;
647 }
648
649 private boolean _execute(Context context, EntityMessage message, boolean browsed, String html) throws JSONException, IllegalArgumentException, IOException {
650 JSONObject jaction = new JSONObject(action);

Callers 4

onRuleMethod · 0.95
onExecuteMethod · 0.95
onExecuteMethod · 0.95
runMethod · 0.45

Calls 4

_executeMethod · 0.95
getInstanceMethod · 0.95
ruleMethod · 0.95
applyRuleMethod · 0.80

Tested by

no test coverage detected