From b885cca8f725265e2734839c0bc8672d6245784f Mon Sep 17 00:00:00 2001 From: M66B Date: Wed, 29 Sep 2021 19:44:27 +0200 Subject: [PATCH] Allow auto submitted for forwarding --- app/src/main/java/eu/faircode/email/EntityRule.java | 4 +++- 1 file changed, 3 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 aa71011854..2b75296eef 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -502,9 +502,11 @@ public class EntityRule { private boolean onActionAnswer(Context context, EntityMessage message, JSONObject jargs) { DB db = DB.getInstance(context); + String to = jargs.optString("to"); boolean attachments = jargs.optBoolean("attachments"); - if (message.auto_submitted != null && message.auto_submitted) { + if (TextUtils.isEmpty(to) && + message.auto_submitted != null && message.auto_submitted) { EntityLog.log(context, EntityLog.Type.Rules, message, "Auto submitted rule=" + name); return false;