-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Broken character encoding when viewing .eml attachments #662
Comments
I wanted to exclude the possibility that Evolution is doing something wrong, so I did the following tests:
So I conclude that the problem is with SnappyMail. |
The EML is parsed in JavaScript by: This is because of support for PGP/MIME decrypt. I know the parser is simple and should be improved to handle this better, and support attachments inside the (decrypted) EML. However, since it is a lot of work to modify SnappyMail source to get this all properly working, it could take a while. |
How can I test my changes, is it enough to change the source inside the NextCloud apps directory and restart apache, or do I have to run something extra for changes to take effect? I found a few hardcoded |
To make modifications you must edit the /static/app.js |
I've added UTF-8 charset conversion. |
Thanks! I manually applied this to static/js/app.js and (after restarting apache and trying in a private window) it still doesn't work, am I missing something? |
Probably, just wait for next release? |
Oh, that was very fast, thanks a lot! I can confirm that it works fine in v2.21.2. |
Describe the bug
When opening an .eml attachment with non-ascii characters, they are displayed wrong. It looks like the utf-8 is interpreted as iso-8859-1 and converted back to utf-8.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The attachment is displayed properly
Screenshots
I sent this email and told the recipient to forward it back to me from Evolution:
This is the email in my inbox:
This is what appears when I click on the attachment:
Please complete the following information:
Additional context
Copy-pasting from the email source:
This is how I recovered the email text, after
iconv
-ing the text fromutf-8
toiso-8859-1
and letting my terminal interpret the result asutf-8
(right before the secondplain ascii
line I pressed^D
which cannot be pasted):The text was updated successfully, but these errors were encountered: