Bug 219749

Summary: kmail displays attachments as "unnamed"
Product: [Applications] kmail Reporter: Krzysztof Dubowik <kite>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: bjoern, m.tatarynowicz, montel
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Krzysztof Dubowik 2009-12-22 22:27:24 UTC
Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

For some senders KMail does not display the mail attachment filenames, but just "Unnamed" even if file name is specified in Content-Disposition.

Here are the headers of the example problem email:

Return-Path: <xxx@interia.pl>
Received: from localhost (localhost [127.0.0.1])
       by f15.poczta.interia.pl (Postfix) with ESMTP id BC3561403437
       for <yyy@interia.pl>; Wed,  9 Dec 2009 19:50:39 +0100 (CET)
Date: 09 Dec 2009 19:50:39 +0100
From: xxx@interia.pl
Sender: xxx@interia.pl
To: yyy@interia.pl
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED;
 BOUNDARY="0-1804289383-1260384639=:52580"
X-ORIGINATE-IP:85.218.36.95
X-PRIORITY:3
X-Mailer: PSE3
Message-Id: <20091209185039.BC3561403437@f15.poczta.interia.pl>
Status: R
X-Status: NT
X-KMail-EncryptionState:
X-KMail-SignatureState:
X-KMail-MDN-Sent:

--0-1804289383-1260384639=:52580
Content-Type: TEXT/plain; CHARSET=UTF-8

--0-1804289383-1260384639=:52580
Content-Type: APPLICATION/octet-stream
Content-Transfer-Encoding: BASE64
Content-ID: <jaselka1.docx4AECA1F9@9230725.3CDBB752>
Content-Disposition: ATTACHMENT; FILENAME="jaselka 1.docx"

UEsDBBQABgAIAAAAIQDd/JU3ZgEAACAFAAATAAgCW0NvbnRlbnRfVHlwZXNd
[...]
SUwAAAAA

--0-1804289383-1260384639=:52580--
Comment 1 Thomas McGuire 2009-12-22 23:12:13 UTC
SVN commit 1065284 by tmcguire:

Add a quick test that KMime can deal with the mail from the bug report

CCBUG: 219749


 M  +33 -0     kmime_message_test.cpp  
 M  +1 -0      kmime_message_test.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1065284
Comment 2 Björn Ruberg 2010-03-10 23:43:19 UTC
Krzysztof, can you test whether this happens still in KDE 4.4?
Comment 3 Krzysztof Dubowik 2010-09-03 23:00:25 UTC
Yes, it still happens in 4.4 (Kubuntu 10.04)
Comment 4 Michał Tatarynowicz 2010-10-21 19:26:33 UTC
In KMail 1.13.5 and KDE 4.5.2 every Message Disposition Notification in my Sent folder displays an Unnamed attachment.
Comment 5 Laurent Montel 2012-08-15 19:43:19 UTC
Still valid in 4.9 ?
Comment 6 Laurent Montel 2015-04-12 09:55:45 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.