summaryrefslogtreecommitdiff
path: root/service/pixelated/adapter/model/mail.py
diff options
context:
space:
mode:
authorNavaL <mnandri@thoughtworks.com>2016-01-08 17:52:32 +0100
committerNavaL <mnandri@thoughtworks.com>2016-01-11 16:56:29 +0100
commit64106a5d6b589616db5ddd07f383b74c66e0b39d (patch)
treec18e5338981a61bf36fb4e0244d00fd44b35214f /service/pixelated/adapter/model/mail.py
parentf07aa46453a311010dad3218689891f91f76e3fc (diff)
fixed filesize bug
Issue #573
Diffstat (limited to 'service/pixelated/adapter/model/mail.py')
-rw-r--r--service/pixelated/adapter/model/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/model/mail.py b/service/pixelated/adapter/model/mail.py
index 1a505481..dd2f4c0d 100644
--- a/service/pixelated/adapter/model/mail.py
+++ b/service/pixelated/adapter/model/mail.py
@@ -116,7 +116,7 @@ class Mail(object):
attachment_mime = MIMENonMultipart(major, sub)
base64_attachment_file = binascii.b2a_base64(attachment['raw'])
attachment_mime.set_payload(base64_attachment_file)
- attachment_mime['Content-Disposition'] = 'attachment; filename="%s"' % attachment['filename']
+ attachment_mime['Content-Disposition'] = 'attachment; filename="%s"' % attachment['name']
attachment_mime['Content-Transfer-Encoding'] = 'base64'
mime.attach(attachment_mime)