From 786326056bbc8a01c0be298cb73335c47f52bc45 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 11 Nov 2021 20:16:49 +0100 Subject: [PATCH] Added infrastructure rule condition --- app/src/main/java/eu/faircode/email/EntityRule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index 57ee04b9f2..80ef27dbe3 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -254,6 +254,8 @@ public class EntityRule { keywords.add("$flagged"); if (message.ui_deleted) keywords.add("$deleted"); + if (message.infrastructure != null) + keywords.add('@' + message.infrastructure); keywords.addAll(Arrays.asList(message.keywords)); if (!keywords.contains(keyword))