From aaf0814fea3057c6cf3178f746d74a2fac6571db Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 6 Jan 2023 16:22:11 +0100 Subject: [PATCH] Added BCC as recipient for filter rules --- FAQ.md | 4 ++-- app/src/main/java/eu/faircode/email/EntityRule.java | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FAQ.md b/FAQ.md index 7e7b317aae..faac4e5a47 100644 --- a/FAQ.md +++ b/FAQ.md @@ -2561,8 +2561,8 @@ Since version 1.2018 there is a rule option to run rules daily on messages older The following rule conditions are available: -* Sender contains or sender is contact -* Recipient contains +* Sender (from, reply-to) contains or sender is contact +* Recipient (to, cc, bcc) contains * Subject contains * Has attachments (optional of specific type) * Header contains diff --git a/app/src/main/java/eu/faircode/email/EntityRule.java b/app/src/main/java/eu/faircode/email/EntityRule.java index 5267aeece0..53bc2d359c 100644 --- a/app/src/main/java/eu/faircode/email/EntityRule.java +++ b/app/src/main/java/eu/faircode/email/EntityRule.java @@ -234,6 +234,8 @@ public class EntityRule { recipients.addAll(Arrays.asList(message.to)); if (message.cc != null) recipients.addAll(Arrays.asList(message.cc)); + if (message.bcc != null) + recipients.addAll(Arrays.asList(message.bcc)); for (Address recipient : recipients) { InternetAddress ia = (InternetAddress) recipient; String personal = ia.getPersonal();