remove quotes from from header for unicode parse (#2888)
This commit is contained in:
parent
6588cf4e71
commit
79620ab716
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue