handle encoding typo
This commit is contained in:
parent
9fb6e45077
commit
5843fa94a0
|
@ -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