Merge pull request #2590 from Spitfireap/fix-unicode-error-getmailcontent

removed html dump to file
This commit is contained in:
Antoine Nguyen
2022-09-05 11:48:42 +02:00
committed by GitHub
-2
View File
@@ -253,8 +253,6 @@ class Email(object):
)
mail_text = lxml.html.tostring(
cleaner.clean_html(html), encoding="unicode")
with open("/tmp/output.txt", "w") as fp:
fp.write(mail_text)
return smart_text(mail_text)
def _map_cid(self, url):