mirror of
https://github.com/simple-login/app.git
synced 2024-09-20 15:05:59 +08:00
Merge pull request #999 from simple-login/ac-allow-7-bit-encoding
Allow '7-bit' encoding for Content-Transfer-Encoding
This commit is contained in:
commit
e37689dc58
|
@ -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