From ef3e356b4c7f544e3b82ebfd07de884e5baf30de Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 2 Jul 2022 08:44:55 +0200 Subject: [PATCH] Reduced logging --- app/src/main/java/eu/faircode/email/EntityRule.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index 7826e4acb5..6db4fe6da8 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -366,7 +366,10 @@ public class EntityRule { } if (html == null) - throw new IllegalArgumentException(context.getString(R.string.title_rule_no_body)); + if (message.encrypt == null || EntityMessage.ENCRYPT_NONE.equals(message.encrypt)) + throw new IllegalArgumentException(context.getString(R.string.title_rule_no_body)); + else + return false; Document d = JsoupEx.parse(html); if (skip_quotes)