Bug 163473

Summary: Invalid header fields from KDE's bugzilla not interpreted correctly
Product: [Applications] kmail Reporter: Frederik Himpe <fhimpe>
Component: mimeAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: kde, peerit
Priority: NOR    
Version: 1.9.51   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Screenshot showing kmail's message list with wrong and correct encoding
e-mail sent by kde's bugzilla of which sender is being rendered incorrectly in kmail's header pane
Umlaut corruption
Another Umlaut corruption

Description Frederik Himpe 2008-06-07 19:36:02 UTC
Version:           1.9.51 (using Devel)
Installed from:    Compiled sources

I have messages sent by a user with an accent in their name. When I select the e-mail in the message list, the name is shown correctly. However, as soon as something else receives focus (for example if I select on another e-mail in the message list, or even if just click in the message window of the selected message), the special character is replaced by a question mark.

Attached screenshot illustrates the problem.
Comment 1 Frederik Himpe 2008-06-07 19:37:34 UTC
Created attachment 25193 [details]
Screenshot showing kmail's message list with wrong and correct encoding
Comment 2 Thomas McGuire 2008-06-10 17:08:30 UTC
Strange, I don't have that problem.
I can only imagine that maybe this is a font problem, and that the font changes depending on selection state.
Comment 3 Frederik Himpe 2008-06-14 14:05:42 UTC
Not all mails are affected. It seems the affected mails, have some bad UTF-8 encoding or at least my amavisd-new scanner added such a warning in all affected mails. I attach an e-mail sent by this bugzilla system concerning this bug, which is affected by this problem :-)

It seems other mail clients are a bit more flexible in ignoring/fixing the encoding error, while KMail only succeeds in interpreting it correctly when the mail is either selected or unselected.

Comment 4 Frederik Himpe 2008-06-14 14:07:24 UTC
Created attachment 25334 [details]
e-mail sent by kde's bugzilla of which sender is being rendered incorrectly in kmail's header pane
Comment 5 Thomas McGuire 2008-06-17 18:56:55 UTC
I can't reproduce the problem, I tried the attached mail and it is drawn correctly for me. No idea why it is not for you.

Bugzilla from KDE produces invalid header fields, the from header is:
From: Nicolas "Lécureuil" <neoclust@mandriva.org>

This is displayed as 'Nicolas "Lécureuil"' (without the singe qoutes) in the sender column for me.

But yes, the double quotes should be stripped, so I leave the bug report open. I think it is a recent regression (probably introduced in r804276)
Comment 6 Thomas McGuire 2008-07-15 21:47:47 UTC
BTW, bug 158535 is quite likely the same problem.
Comment 7 Jack Black 2008-10-18 17:16:12 UTC
Created attachment 28000 [details]
Umlaut corruption
Comment 8 Jack Black 2008-10-18 17:16:43 UTC
Created attachment 28001 [details]
Another Umlaut corruption
Comment 9 Jack Black 2008-10-18 17:17:12 UTC
I can confirm this using an IMAP account. Have attached screenshots.
Comment 10 Laurent Montel 2015-04-12 10:20:11 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.