def matches_whitelist(self, recipient):
matches = False<EOL>for entry in settings.EMAIL_BACKEND_WHITELIST:<EOL><INDENT>if re.match(entry, recipient):<EOL><INDENT>matches = True<EOL><DEDENT><DEDENT>return matches<EOL>
Checks if the email address matches one of the whitelist entries.