7or8bit-decode #5
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ def decode_email(message: email.message.Message) -> email.message.Message:
|
||||||
|
|
||||||
# decoding needed:
|
# decoding needed:
|
||||||
# as_string() gives us str, encode() gives us bytes
|
# as_string() gives us str, encode() gives us bytes
|
||||||
decoded_bytes = msg.as_string().encode()
|
decoded_bytes = message.as_string().encode()
|
||||||
if "quoted-printable" in decodes_needed:
|
if "quoted-printable" in decodes_needed:
|
||||||
decoded_bytes = quopri.decodestring(decoded_bytes)
|
decoded_bytes = quopri.decodestring(decoded_bytes)
|
||||||
if "base64" in decodes_needed:
|
if "base64" in decodes_needed:
|
||||||
|
|
Loading…
Reference in a new issue