mirror of
https://github.com/simple-login/app.git
synced 2025-02-24 15:53:22 +08:00
handle encoding typo
This commit is contained in:
parent
9fb6e45077
commit
5843fa94a0
1 changed files with 2 additions and 2 deletions
|
@ -844,8 +844,8 @@ def get_encoding(msg: Message) -> EmailEncoding:
|
||||||
- base64
|
- base64
|
||||||
- 7bit: default if unknown or empty
|
- 7bit: default if unknown or empty
|
||||||
"""
|
"""
|
||||||
cte = str(msg.get("content-transfer-encoding", "")).lower()
|
cte = str(msg.get("content-transfer-encoding", "")).lower().strip()
|
||||||
if cte in ("", "7bit", "8bit", "binary"):
|
if cte in ("", "7bit", "8bit", "binary", "8bit;"):
|
||||||
return EmailEncoding.NO
|
return EmailEncoding.NO
|
||||||
|
|
||||||
if cte == "base64":
|
if cte == "base64":
|
||||||
|
|
Loading…
Reference in a new issue