bugfix: support name-addr mailbox form
This commit is contained in:
parent
2e5e7e7f5e
commit
7d78a08f95
@ -49,7 +49,8 @@ class SESBackend(BaseBackend):
|
|||||||
self.sent_messages = []
|
self.sent_messages = []
|
||||||
self.sent_message_count = 0
|
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:
|
if address in self.addresses:
|
||||||
return True
|
return True
|
||||||
user, host = address.split('@', 1)
|
user, host = address.split('@', 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user