Bug 91128

Summary: tnef file viewer displays long filenames but only extracts to short dos filenames with tilde
Product: [Applications] ktnef Reporter: Dan A. Dickey <dan.dickey>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: arthur, halen, kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 4.11.4
Attachments: microsoft word document

Description Dan A. Dickey 2004-10-11 19:03:52 UTC
Version:           1.0 (using KDE 3.3.0, Gentoo)
Compiler:          gcc version 3.4.2 (Gentoo Linux 3.4.2-r2, ssp-3.4.1-1, pie-8.7.6.5)
OS:                Linux (i686) release 2.6.8-gentoo-r6

In the winmail.dat attachments, if I'm sent a document with a "long" NTFS style filename and try to extract it using the tnef file viewer - the viewer extracts it to a file with the "short DOS" style filename.  I'd like it to use the longer name and not have to deal with short names with tildes in them and not have to actually type in the long name.
As the viewer already displays the long name, this should be easily done.
Comment 1 Christiaan Hees 2005-03-25 23:57:44 UTC
I had a tnef attachment with 3 files in it:

Fall 2005 Enrollment Instructions.doc
Fall 2005 Enrollment Worksheet.doc
L & S Depts II.doc

Now when I extracted the 3 files, I got only 2 files:

Fall2005.doc
LSDeptsI.doc

Apart from the fact that the files didn't have the same name anymore, I also couldn't get the 3rd file extracted in any way. If I tried to explicitly extract the Enrollment Worksheet file, I still got the Enrollment Instructions file. (named Fall2005.doc again)
Comment 2 Stefano Pasquale 2008-01-20 11:49:02 UTC
Created attachment 23153 [details]
microsoft word document

An additional attachment ktnef 1.0 can't appropriately explode.
Comment 3 Allen Winter 2013-11-09 18:20:20 UTC
Git commit ddb5c8a4282d524eb3d5853ea3f931e1989f7993 by Allen Winter.
Committed on 09/11/2013 at 18:19.
Pushed by winterz into branch 'KDE/4.11'.

save TNEF attachments with their filename property, when possible.
FIXED-IN: 4.11.4

M  +10   -1    ktnef/ktnefparser.cpp

http://commits.kde.org/kdepimlibs/ddb5c8a4282d524eb3d5853ea3f931e1989f7993
Comment 4 zless 2013-11-09 19:15:47 UTC
Thanks. That was fast.
I guess I'll have to start pinging more bug reports ;)
Comment 5 Allen Winter 2013-11-09 20:33:02 UTC
Git commit 04077977c89884fe4b065b97348665b2899e8a60 by Allen Winter.
Committed on 09/11/2013 at 18:19.
Pushed by winterz into branch 'master'.

save TNEF attachments with their filename property, when possible.
FIXED-IN: 4.11.4

M  +10   -1    ktnef/ktnefparser.cpp

http://commits.kde.org/kdepimlibs/04077977c89884fe4b065b97348665b2899e8a60
Comment 6 Christoph Feck 2013-11-19 23:44:25 UTC
> I guess I'll have to start pinging more bug reports ;)

It might sound odd, yes, but it sometimes really helps. With 20,000+ reports (not counting the feature requests), nobody really checks them all to see which are still reproducible and actually affect users. So adding comments even to very old bugs is a good idea.