mirror of
https://github.com/simple-login/app.git
synced 2024-11-16 00:48:32 +01:00
Allow '7-bit' encoding for Content-Transfer-Encoding
This commit is contained in:
parent
a224f4faa6
commit
88c60f5387
1 changed files with 1 additions and 1 deletions
|
@ -885,7 +885,7 @@ def get_encoding(msg: Message) -> EmailEncoding:
|
||||||
- 7bit: default if unknown or empty
|
- 7bit: default if unknown or empty
|
||||||
"""
|
"""
|
||||||
cte = str(msg.get(headers.CONTENT_TRANSFER_ENCODING, "")).lower().strip()
|
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
|
return EmailEncoding.NO
|
||||||
|
|
||||||
if cte == "base64":
|
if cte == "base64":
|
||||||
|
|
Loading…
Reference in a new issue