Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept mail with charset not set to utf-8. #13

Closed
wants to merge 1 commit into from

Conversation

ulfrenman
Copy link
Contributor

The plain and HTML views of the mail expected the mail to be encoded as
utf-8. So for mail with other encoding the presentation will be messed
up for characters outside the ascii-range.

This is a working but crude patch since its reencodes the text to utf-8
from whatever encoding it was to start of with. so all messages are
actually displayed as utf-8 messages even if you have a line like this
in your message:
Content-Type: text/plain; charset="iso-8859-1"

The plain and HTML views of the mail expected the mail to be encoded as
utf-8. So for mail with other encoding the presentation will be messed
up for characters outside the ascii-range.

This is a working but crude patch since its reencodes the text to utf-8
from whatever encoding it was to start of with. so all messages are
actually displayed as utf-8 messages even if you have a line like this
in your message:
  Content-Type: text/plain; charset="iso-8859-1"
@ThiefMaster
Copy link
Owner

Thanks for the PR! small suggestion for the future: Never perform actual merges in master of a fork. Always use fast-forward merges or rebase.

@ThiefMaster
Copy link
Owner

Merged 8f0dc44 and improved in d1e448d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants