Added BCC as recipient for filter rules

pull/210/head
M66B 2 years ago
parent 874c0035e4
commit aaf0814fea

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

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

Loading…
Cancel
Save