summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/pixelated/adapter/mail.py3
-rw-r--r--service/test/unit/adapter/mail_test.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/service/pixelated/adapter/mail.py b/service/pixelated/adapter/mail.py
index 24ee797d..52a0a2e8 100644
--- a/service/pixelated/adapter/mail.py
+++ b/service/pixelated/adapter/mail.py
@@ -81,7 +81,8 @@ class Mail:
'status': list(self.status),
'security_casing': {},
'body': self.body,
- 'mailbox': self.mailbox_name.lower()
+ 'mailbox': self.mailbox_name.lower(),
+ 'attachments': self.parts['attachments'] if self.parts else []
}
diff --git a/service/test/unit/adapter/mail_test.py b/service/test/unit/adapter/mail_test.py
index 8b35b181..00a05b4a 100644
--- a/service/test/unit/adapter/mail_test.py
+++ b/service/test/unit/adapter/mail_test.py
@@ -87,7 +87,8 @@ class TestPixelatedMail(unittest.TestCase):
'mailbox': 'inbox',
'security_casing': {},
'status': ['recent'],
- 'tags': []
+ 'tags': [],
+ 'attachments': []
})
def test_alternatives_body(self):