Bug 191455

Summary: Attachment file name truncated when slash present
Product: [Applications] kmail Reporter: kde
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: christophe
Priority: NOR    
Version: 1.11.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description kde 2009-05-03 12:40:33 UTC
Version:            (using KDE 4.2.2)
OS:                Linux
Installed from:    Ubuntu Packages

When I receive a pdf that has the US date separator in the file name, the save as dialog truncates everything before the last slash.

Content-Type: application/pdf; name="name-receipt-04/06/09.pdf"
Content-Transfer-Encoding: Base64
Content-Disposition: attachment; filename="name-receipt-04/06/09.pdf"

Shown in message window as: name-receipt-04/06/09.pdf
Shown in attachment list as: name-receipt-04
Shown in 'Save as' dialog as: 09.pdf

Proposed workaround: converting / into - might work well, simply excluding the character from the file name would work, too.
Comment 1 Martin Koller 2009-09-05 01:24:31 UTC
SVN commit 1019989 by mkoller:

BUG: 191455

Replace dir-delimiters with _ char onm saving attachments


 M  +8 -0      kmcommands.cpp  


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