diff --git a/pymisp/tools/emailobject.py b/pymisp/tools/emailobject.py index 7015ec5..ea4a90b 100644 --- a/pymisp/tools/emailobject.py +++ b/pymisp/tools/emailobject.py @@ -269,7 +269,7 @@ class EMailObject(AbstractMISPObjectGenerator): if self.encapsulated_body == body.get_content_type(): comment += " De-Encapsulated from RTF in original msg." self.add_attribute("email-body", - body.get_payload(decode=True).decode('utf8', 'surrogateescape'), + body.get_content(), comment=comment) headers = ["{}: {}".format(k, v) for k, v in message.items()]