From 1b09b3a26141c22f37b6ab3ed9af15fcbddd18f8 Mon Sep 17 00:00:00 2001 From: "Jannis M. Hoffmann" Date: Thu, 2 Mar 2023 17:34:20 +0100 Subject: Bugfixes 1. correctly read mime parts 2. avoid encoding issues when parsing json form qmauth 3. use 'replace' instead of 'strict' error handling when decoding mails in qmauth.py --- script/qmauth.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/qmauth.py b/script/qmauth.py index 7803483..052b8dd 100755 --- a/script/qmauth.py +++ b/script/qmauth.py @@ -202,7 +202,7 @@ def count_mails(f, subfolder): def _get_body(mail): if not mail.is_multipart(): if mail.get_content_maintype() == 'text': - return mail.get_payload(decode=True).decode() + return mail.get_payload(decode=True).decode(errors='replace') else: return mail.get_payload() -- cgit v1.2.3