From b213a0ab52c6b645c566722979643d6d22c5a394 Mon Sep 17 00:00:00 2001 From: revsuine Date: Thu, 14 Nov 2024 18:52:18 +0000 Subject: [PATCH] don't encode decoded --- gpgmymail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpgmymail b/gpgmymail index c725fbf..84fefb4 100755 --- a/gpgmymail +++ b/gpgmymail @@ -83,7 +83,7 @@ def decode_email(message: email.message.Message) -> email.message.Message: if not part.is_multipart(): if part.get("Content-Transfer-Encoding") == "base64": 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( b64_str, decoded_b64_str