mirror of
https://github.com/HaschekSolutions/opentrashmail.git
synced 2026-04-25 14:45:59 +03:00
[GH-ISSUE #94] All e-mail content is interpreted as UTF-8, leading to a UnicodeDecodeError for some e-mails in a different encoding. #67
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrashmail#67
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @geraldschmittinger on GitHub (Jan 8, 2025).
Original GitHub issue: https://github.com/HaschekSolutions/opentrashmail/issues/94
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.@RyanZufaellig commented on GitHub (Jan 17, 2025):
Hello,
There is already a commit waiting to be accepted: https://github.com/HaschekSolutions/opentrashmail/pull/93/commits/9aeae959c29e9d554347a12dea71f7be7918b619
I made the changes myself, and it worked flawlessly.
@geraldschmittinger commented on GitHub (Apr 25, 2025):
Thank you!