diff --git a/app/email_utils.py b/app/email_utils.py index 0c65df43..ef7baa87 100644 --- a/app/email_utils.py +++ b/app/email_utils.py @@ -885,7 +885,7 @@ def get_encoding(msg: Message) -> EmailEncoding: - 7bit: default if unknown or empty """ cte = str(msg.get(headers.CONTENT_TRANSFER_ENCODING, "")).lower().strip() - if cte in ("", "7bit", "8bit", "binary", "8bit;", "utf-8"): + if cte in ("", "7bit", "7-bit", "8bit", "binary", "8bit;", "utf-8"): return EmailEncoding.NO if cte == "base64":