Bug 187528

Summary: Wrong charset in attachment name in the message header
Product: [Applications] kmail Reporter: Radek Jun <radek.jun>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: 1.11.1   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Depicted where is right and wront attachment name.

Description Radek Jun 2009-03-18 16:37:20 UTC
Version:           1.11.1 (using 4.2.1 (KDE 4.2.1), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.28-tuxonice-r1-normal

If I have email with attachment in UTF-8, for example

Content-Type: text/plain; charset=UTF-8; name="nějakýčeskýnázev.txt"

then I can see the right attachment name in the bottom of the message body, but wrong attachment name in the message header and in the content table bellow the message body.
Comment 1 Radek Jun 2009-03-18 16:50:50 UTC
Created attachment 32239 [details]
Depicted where is right and wront attachment name.
Comment 2 Jaime Torres 2009-03-18 17:29:14 UTC
I've tried with a file with name "àèìòùáéióú.txt" and the header looks like:
(before sending it and after receiving it)
Content-Type: text/plain;
  charset="UTF-8";
  name*=UTF-8''%C3%A0%C3%A8%C3%AC%C3%B2%C3%B9%C3%A1%C3%A9%C3%AD%C3%B3%C3%BA%2Etxt

in kde svn trunk (4.2.66).

Have the message come from a non standars compliant mail server?

See bug 176479 and bug 173503.
Comment 3 Laurent Montel 2015-04-12 09:54:00 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.