From 7d78a08f9539b6d3dbeb7b6a9766eb042911943c Mon Sep 17 00:00:00 2001 From: Robert C Jensen Date: Thu, 26 Jul 2018 21:08:31 -0400 Subject: [PATCH] bugfix: support name-addr mailbox form --- moto/ses/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/moto/ses/models.py b/moto/ses/models.py index 3dced60f2..71fe9d9a1 100644 --- a/moto/ses/models.py +++ b/moto/ses/models.py @@ -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)