1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 12:44:42 +00:00

Summary requires body

This commit is contained in:
M66B 2024-06-23 09:45:19 +02:00
parent 064ce7d97c
commit 1ab373d1c9

View file

@ -182,6 +182,11 @@ public class EntityRule {
private static boolean needs(List<EntityRule> 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)) {