You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I send an e-mail in ISO-8859-1 encoding containing an ä, this causes the e-mail to be rejected due to a UniformDecodeError.
I figured that the reason for this is that in python/mailserver3.py (line 52), the content of the e-mail is always parsed as UTF-8. However, in ISO-8859-1, an ä has the code 0xE4, which is a continuation byte in UTF-8. When the character preceding this byte cannot validly be continued, the text is not valid unicode and therefore causes this error.
The text was updated successfully, but these errors were encountered:
geraldschmittinger
changed the title
All e-mail content is interpreted as UTF-8, leading to a UnicodeDecodeError for some e-mails in another encoding.
All e-mail content is interpreted as UTF-8, leading to a UnicodeDecodeError for some e-mails in a different encoding.
Jan 8, 2025
I encountered an issue with Open Trashmail:
When I send an e-mail in ISO-8859-1 encoding containing an
ä
, this causes the e-mail to be rejected due to aUniformDecodeError
.I figured that the reason for this is that in python/mailserver3.py (line 52), the content of the e-mail is always parsed as UTF-8. However, in ISO-8859-1, an
ä
has the code0xE4
, which is a continuation byte in UTF-8. When the character preceding this byte cannot validly be continued, the text is not valid unicode and therefore causes this error.The text was updated successfully, but these errors were encountered: