Allow '7-bit' encoding for Content-Transfer-Encoding
This commit is contained in:
parent
a224f4faa6
commit
88c60f5387
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue