[Regression] "Enable multiple bulk emails" is no longer respected
Steps to Replicate
- Set Enable multiple bulk emails to
TRUE
at Administer » CiviMail » CiviMail Component Settings. - Create a new mailing group.
- Create a new contact with two emails. Set both as bulk email addresses and add them to the new group.
- Send a mailing to the group.
Expected Both email addresses will receive the email.
Actual Only the primary address receives the email.
This is a regression as of 5.19 caused by PR 15404. The SQL is modified to ensure only primary emails are returned.
core#861 (closed) is intended to filter out emails during a mailing for a person who, e.g., was marked deceased after the mailing was scheduled. However, we shouldn't be filtering all non-primary emails.