remove quotes from from header for unicode parse (#2888)

This commit is contained in:
robert schouten 2017-03-24 18:19:26 +08:00 committed by Rushabh Mehta
parent 6588cf4e71
commit 79620ab716

View file

@ -409,7 +409,7 @@ class Email:
def decode_email(self, email):
if not email: return
decoded = ""
for part, encoding in decode_header(email):
for part, encoding in decode_header(email.replace("\""," ").replace("\'"," ")):
if encoding:
decoded += part.decode(encoding)
else: