don't encode decoded
This commit is contained in:
parent
9a3a1f2cb7
commit
b213a0ab52
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ def decode_email(message: email.message.Message) -> email.message.Message:
|
||||||
if not part.is_multipart():
|
if not part.is_multipart():
|
||||||
if part.get("Content-Transfer-Encoding") == "base64":
|
if part.get("Content-Transfer-Encoding") == "base64":
|
||||||
b64_str = part.get_payload().encode()
|
b64_str = part.get_payload().encode()
|
||||||
decoded_b64_str = part.get_payload(decode=True).encode()
|
decoded_b64_str = part.get_payload(decode=True)
|
||||||
decoded_bytes = decoded_bytes.replace(
|
decoded_bytes = decoded_bytes.replace(
|
||||||
b64_str,
|
b64_str,
|
||||||
decoded_b64_str
|
decoded_b64_str
|
||||||
|
|
Loading…
Reference in a new issue