summaryrefslogtreecommitdiff
path: root/service/pixelated
diff options
context:
space:
mode:
authorPatrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com>2014-10-27 14:40:55 -0300
committerPatrick Maia and Victor Shyba <pixelated-team+pmaia+vshyba@thoughtworks.com>2014-10-27 14:41:10 -0300
commit3f7c5fd9a9506957b722a47f2fbdb7e587654823 (patch)
treeeb1c791d834840018f63198deabc491224cd2c0f /service/pixelated
parent30ab7258392ebb884ca835ec32000275c61c65d0 (diff)
Card #30 - fixes bug in which % character on multipart body was causing an exception
Diffstat (limited to 'service/pixelated')
-rw-r--r--service/pixelated/adapter/mail.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/service/pixelated/adapter/mail.py b/service/pixelated/adapter/mail.py
index f152c73f..82b4d0a6 100644
--- a/service/pixelated/adapter/mail.py
+++ b/service/pixelated/adapter/mail.py
@@ -197,14 +197,14 @@ class PixelatedMail(Mail):
if self.parts and len(self.parts['alternatives']) > 1:
body = ''
for alternative in self.parts['alternatives']:
- body += "--%(boundary)s\n"
+ body += '--' + self.boundary + '\n'
for header, value in alternative['headers'].items():
- body += "%s: %s\n" % (header, value)
+ body += '%s: %s\n' % (header, value)
body += '\n'
body += alternative['content']
body += '\n'
- body += '--%(boundary)s--'
- return body % {'boundary': self.boundary}
+ body += '--' + self.boundary + '--'
+ return body
else:
return self.bdoc.content['raw']