From 1ab373d1c9c13c0f7b4725e69f77ac50db6062b6 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 23 Jun 2024 09:45:19 +0200 Subject: [PATCH] Summary requires body --- app/src/main/java/eu/faircode/email/EntityRule.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index e56b5a6047..c66ff7df01 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -182,6 +182,11 @@ public class EntityRule { private static boolean needs(List rules, String what) { for (EntityRule rule : rules) try { + JSONObject jaction = new JSONObject(rule.action); + int type = jaction.getInt("type"); + if (type == TYPE_SUMMARIZE) + return true; + JSONObject jcondition = new JSONObject(rule.condition); if (jcondition.has(what)) {