diff options
author | Alexandre Pretto <anunes@thoughtworks.com> | 2015-01-08 18:48:48 -0200 |
---|---|---|
committer | Pixpoa pairing <pixpoapairing@pixelated-project.org> | 2015-01-08 18:53:40 -0200 |
commit | b06b794de750d972a9dff9165e203815b79c5b62 (patch) | |
tree | b34414d27dff67ce94c7c15f419f25b9dcfae0d1 /service/pixelated/adapter/search | |
parent | 266b2f10f848902b31e0dfd05696dc2f5618bf2e (diff) |
#157: mail api to return htmlBody and textPlainBody so the UI doesnt have to parse the multipart mails anymore
Diffstat (limited to 'service/pixelated/adapter/search')
-rw-r--r-- | service/pixelated/adapter/search/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/service/pixelated/adapter/search/__init__.py b/service/pixelated/adapter/search/__init__.py index bbefc487..a5eb4ef2 100644 --- a/service/pixelated/adapter/search/__init__.py +++ b/service/pixelated/adapter/search/__init__.py @@ -128,7 +128,7 @@ class SearchEngine(object): 'cc': u','.join(header.get('cc', [''])), 'bcc': u','.join(header.get('bcc', [''])), 'tag': u','.join(unique(tags)), - 'body': unicode(mdict['body']), + 'body': unicode(mdict['textPlainBody']), 'ident': unicode(mdict['ident']), 'flags': unicode(','.join(unique(mail.flags))), 'raw': unicode(mail.raw) |