Skip to content

Commit

Permalink
Merge pull request #9 from daxslab/fix_email_get_body
Browse files Browse the repository at this point in the history
fix: #3 Fix Email class get_body() for python 3.x
  • Loading branch information
cccaballero authored Mar 22, 2018
2 parents c140c73 + 7a96146 commit 94af0e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailproc/mailproc_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def get_body(self, html=False):
body = ''
for part in self._walk_email():
if part.get_content_type() == content_type:
body += part.get_payload(decode=1)
body += part.get_payload(decode=1).decode(part.get_content_charset())
return body

def get_json_attachment(self, attachment_name=None, attachment_content_type=None,
Expand Down

0 comments on commit 94af0e3

Please sign in to comment.