I would like to submit a PR to map specific email recipients to specific alert rules. Right now I am planning to:
- Add a sql table to track rule_id->email address line relationship
- Add a UI to allow maintenance of the above table.
- In alerts.inc.php:
- Pass the rule id to GetContacts() as a 2nd, optional variable
- Within GetContacts(), if 2nd variable exists, pull matching email addresses from the table and push into the $contacts array.
- Alternatively, evaluate for email addresses outside of GetContacts and pass an email address array as the 2nd variable, and use it to initialize the $contacts array.
Asking for a green light to begin work on this and also feedback on design.