7or8bit-decode #5

Manually merged
revsuine merged 17 commits from 7or8bit-decode into master 2024-11-14 19:45:52 +00:00
Showing only changes of commit 2955e990da - Show all commits

View file

@ -79,7 +79,7 @@ def decode_email(message: email.message.Message) -> email.message.Message:
# decoding needed:
# 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:
decoded_bytes = quopri.decodestring(decoded_bytes)
if "base64" in decodes_needed: