When subscription is enabled for email notification rule, it adds "ES_GetSubscribersEmails()" function to the "To" field.You can implement user-defined function to filter desirable email addresses from the list and pass ES_GetSubscribersEmails() as a parameter, so the correspondent "To" line would look like