summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2014-10-21 07:54:59 -0300
committerVictor Shyba <victor.shyba@gmail.com>2014-10-22 17:27:24 -0300
commit3baa79696b36bf3ba0db20af58dc5ea6b3a701a3 (patch)
treebe787b1aade837a9a0c5aec73810bd2d7e47f592 /service
parentd677b1f2cd703f138bff023b3f27438a9d30a21d (diff)
Card #30 - correctly sets part map for outcoming mail
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/adapter/mail.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/mail.py b/service/pixelated/adapter/mail.py
index 1d2080fa..ebdcf02b 100644
--- a/service/pixelated/adapter/mail.py
+++ b/service/pixelated/adapter/mail.py
@@ -136,7 +136,7 @@ class InputMail(Mail):
hd[fields.SUBJECT_KEY] = self.headers.get('Subject')
hd[fields.TYPE_KEY] = fields.TYPE_HEADERS_VAL
hd[fields.BODY_KEY] = self._get_body_phash()
- hd[fields.PARTS_MAP_KEY] = walk.walk_msg_tree(walk.get_parts(self._mime_multipart), body_phash=self._get_body_phash())
+ hd[fields.PARTS_MAP_KEY] = walk.walk_msg_tree(walk.get_parts(self._mime_multipart), body_phash=self._get_body_phash())['part_map']
self._hd = hd
return hd