Correctly handle formatted email addresses in domain filter