Added BCC as recipient for filter rules

This commit is contained in:
M66B 2023-01-06 16:22:11 +01:00
parent 874c0035e4
commit aaf0814fea
2 changed files with 4 additions and 2 deletions

4
FAQ.md
View File

@ -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

View File

@ -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();