This would have the same format as divertallemailsexcept and also be a textarea manageable in the UI.
A super common use case for this is a client is in preproduction, we want emails off but then want to test emails is a cautious manner and allow just emails to one domain, or just emails to a handful of testers.
We currently manage this at the postfix layer, but it would be nice to expose this directly in Moodle - even if the list is forced to a value in config.php it is still nicer to make it readable in the UI.
- New textarea with one email filter expression per line the same as divertallemailsexcept
- Changes to the email test tool so that it shows if the email should have been sent or not
- I think this should be based on top of