diff options
Diffstat (limited to 'service/pixelated/adapter/model/mail.py')
-rw-r--r-- | service/pixelated/adapter/model/mail.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py index 3ea7c95a..96f2c81c 100644 --- a/service/pixelated/adapter/model/mail.py +++ b/service/pixelated/adapter/model/mail.py @@ -384,7 +384,9 @@ class PixelatedMail(Mail): def bounced(self): content_type = self.hdoc.content["headers"].get("Content-Type", '') if re.compile('delivery-status').search(content_type): - return self._extract_bounced_address(self.hdoc.content) + bounce_recipient = self._extract_bounced_address(self.hdoc.content) + bounce_daemon = self.headers["From"] + return [bounce_recipient, bounce_daemon] if bounce_recipient else False return False |