-
Notifications
You must be signed in to change notification settings - Fork 391
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
Work around broken encodings in received messages #2700
Comments
Can you attach a message file (anonymized as needed) where this happens? Thanks. |
The only such email i have is the one i received today, which contains personal health information. i've redacted the bodies (i.e. the two MIME parts) basically in their entirety, and also redacted various bits of header content in a minimal way, hopefully still leaving it usable. |
Emacs is just showing what it gets from the mu-server, it doesn't decode anything in the headers buffer.
so the problem seems to be that the original message uses the window-1252 charset, but claimed it was ISO-8859-1:
you can see that if you'd change the subject to
it will show correctly (after re-indexing etc.). |
Now, while it's the message's sender that's misbehaving, that won't help us very much.
|
Ah, great analysis, thank you. i think i had indeed run Thanks for converting this to an RFE. 👍 i'm going to try emailing postmaster@salesforce about this, which is probably unlikely to result in any change, but at least i'll have tried. 😛 |
It's just come to my attention that the HTML5 spec says that "ISO-8859-1" is to be interpreted as Windows-1252. So presumably what's happening in this email is that it's assumed it will be read in a Web-based client - which, to be fair, is more than likely the case - such that the HTML5 spec is applicable. Which, fwiw, feels incorrect to me: even if the email body contains only a text/html MIME part, the headers are certainly not HTML. |
I'm moving this to the |
Context: mu+mu4e 1.12.4 running on Emacs 29.3, both installed via Portage (
net-mail/mu
andapp-editors/emacs
) on Gentoo.i recently received an email whose raw subject line is:
This subject line is correctly displayed in mu4e:view mode, as:
but in mu4e:headers mode, it's displayed as:
i.e. the byte sequence:
This appears to be the result of the
rfc2047-decode-region
function, or some equivalent, not being run on the text; running that function on it results in correct display.Checklist
master
(otherwise please upgrade)The text was updated successfully, but these errors were encountered: