var name typo

This commit is contained in:
revsuine 2024-11-14 18:15:06 +00:00
parent e7a8f40b91
commit 2955e990da
Signed by: revsuine
GPG key ID: 3F257B68F5BC9339

View file

@ -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: