diff options
author | Patrick Maia <pmaia@thoughtworks.com> | 2014-10-29 10:39:06 -0300 |
---|---|---|
committer | Patrick Maia <pmaia@thoughtworks.com> | 2014-10-29 11:01:48 -0300 |
commit | 30d3d281d0f5d8598f4d36fde08f2b12da55f711 (patch) | |
tree | 7b54620177fb9d0761898fd9d7d2d62e4a139702 /service/pixelated/adapter | |
parent | 09df80b1860ac22864f3e77af14bdab6ac0fbe2c (diff) |
Card #30 - adds attachment information on mail response
Diffstat (limited to 'service/pixelated/adapter')
-rw-r--r-- | service/pixelated/adapter/mail.py | 3 |
1 files changed, 2 insertions, 1 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 [] } |