bugfix: support name-addr mailbox form

This commit is contained in:
Robert C Jensen 2018-07-26 21:08:31 -04:00
parent 2e5e7e7f5e
commit 7d78a08f95

View File

@ -49,7 +49,8 @@ class SESBackend(BaseBackend):
self.sent_messages = []
self.sent_message_count = 0
def _is_verified_address(self, address):
def _is_verified_address(self, source):
_, address = parseaddr(source)
if address in self.addresses:
return True
user, host = address.split('@', 1)