Bug 184459 - Can't open attached .tar.gz in mails due to temp filename
Summary: Can't open attached .tar.gz in mails due to temp filename
Status: RESOLVED FIXED
Alias: None
Product: kmail
Classification: Unmaintained
Component: general (show other bugs)
Version: 1.11.90
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-15 22:09 UTC by Milko Krachounov
Modified: 2009-03-11 15:15 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milko Krachounov 2009-02-15 22:09:45 UTC
Version:            (using KDE 4.2.0)
Compiler:          gcc 4.3.1 
OS:                Linux
Installed from:    Gentoo Packages

I can't seem to bne able to open .tar.gz archives attached to mails by clicking them in KMail/Kontact. What happens:

1. I click foo.tar.gz that is attached to a mail I received or sent.
2. A temporary file foo.tar_[bar].gz  is created and opened with Ark
3. Ark believes this is a binary file named foo.tar_[bar] compressed with gzip, and not a gzipped tar archive, so it doesn't see the files inside the archive, and therefore you can't extract them
Comment 1 Jaime Torres 2009-02-18 17:03:09 UTC
Confirmed, bit the temporary file, in my case, is foo.tar.gz_[xxxx].gz
Comment 2 Jonathan Marten 2009-03-06 12:08:02 UTC
SVN commit 935825 by marten:

Use KMimeType::extractKnownExtension() when linking an attachment file
to open, so that it will use the intended file association. 

For example, open a .tar.gz attachment as a .tar.gz file, not as a .gz

BUG:184459


 M  +1 -1      kmcommands.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=935825
Comment 3 Thomas McGuire 2009-03-11 15:15:54 UTC
SVN commit 938202 by tmcguire:

Backport r935825 by marten from trunk to the 4.2 branch:

Use KMimeType::extractKnownExtension() when linking an attachment file
to open, so that it will use the intended file association. 

For example, open a .tar.gz attachment as a .tar.gz file, not as a .gz

CCBUG:184459



 M  +1 -1      kmcommands.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=938202