Skip to content

Commit

Permalink
fix inbox rules treating legacy and maildetails mail bcc differently
Browse files Browse the repository at this point in the history
fix b29a7b3
close #6267
  • Loading branch information
ganthern committed Dec 12, 2023
1 parent 0409021 commit 75c45af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mail/model/InboxRuleHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ async function checkInboxRule(mailFacade: MailFacade, entityClient: EntityClient
inboxRule,
)
} else if (ruleType === InboxRuleType.RECIPIENT_BCC_EQUALS) {
const bccRecipients = !isLegacyMail(mail) ? (await mailFacade.loadMailDetailsBlob(mail)).recipients.ccRecipients : mail.bccRecipients
const bccRecipients = !isLegacyMail(mail) ? (await mailFacade.loadMailDetailsBlob(mail)).recipients.bccRecipients : mail.bccRecipients
return _checkEmailAddresses(
bccRecipients.map((m) => m.address),
inboxRule,
Expand Down

0 comments on commit 75c45af

Please sign in to comment.