From 3baa79696b36bf3ba0db20af58dc5ea6b3a701a3 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Tue, 21 Oct 2014 07:54:59 -0300 Subject: Card #30 - correctly sets part map for outcoming mail --- service/pixelated/adapter/mail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'service') 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 -- cgit v1.2.3