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

Import issues - encoding - broken diacritics #249

Open
exander77 opened this issue Nov 12, 2024 · 5 comments
Open

Import issues - encoding - broken diacritics #249

exander77 opened this issue Nov 12, 2024 · 5 comments

Comments

@exander77
Copy link

exander77 commented Nov 12, 2024

I have imported 90k e-mails to test and a lot of them has broken encoding in WebUI:

d�kuji v�em za rychl� hlasov�n�. Vypadl z toho term�n

Most likely related to this:

Content-Type: text/plain; charset=iso-8859-2

WebUI has to convert all data to UTF-8 to show.

@exander77 exander77 changed the title Import issues - broken diacritics Import issues - encoding - broken diacritics Nov 12, 2024
@mjl-
Copy link
Owner

mjl- commented Nov 13, 2024

Is this a text/plain or a text/html part that is being displayed incorrectly?
Text parts are parsed server-side (from whatever the content-type message header says into utf-8), and a JSON is sent to the webmail, which renders the text.
HTML parts are parsed (also decoding from content-type in message header into utf-8), sanitized, and sent to the browser for rendering.
Something is probably behaving badly.
Would you have a test message that shows this behaviour? You could also send it privately to me, at mechiel@ueber.net.

@exander77
Copy link
Author

Both text and HTML view is broken exactly the same way.

@mjl-
Copy link
Owner

mjl- commented Nov 13, 2024

And any chance you can provide an example of a message that is not being handled correctly? Could be a modified/minimal message that shows the behaviour.

Raw messages are easily exported from the webmail interface.
After modifications (e.g. removing sensitive information), it can easily be imported again for testing with "mox deliver you@domain < message.eml".

@exander77
Copy link
Author

Sent you an e-mail.

@mjl-
Copy link
Owner

mjl- commented Nov 13, 2024

Thanks, sent a reply with some next steps to investigate.

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

No branches or pull requests

2 participants