Bug 172388 - Attachments saved as filenames enclosed in quotes
Summary: Attachments saved as filenames enclosed in quotes
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-08 12:15 UTC by Rodney Baker
Modified: 2012-08-19 00:18 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Partial screenshot showing how attachment is displayed in kmail (39.80 KB, image/jpeg)
2008-10-08 12:21 UTC, Rodney Baker
Details
Screen shot of Save As dialog showing filename in quotes. (111.68 KB, image/jpeg)
2008-10-08 12:22 UTC, Rodney Baker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodney Baker 2008-10-08 12:15:54 UTC
Version:            (using KDE 4.1.2)
OS:                Linux
Installed from:    SuSE RPMs

When saving attachments from emails sent from Outlook, KMail includes the quotes from the attachment description in the filename. Outlook adds the attachment as per the attached screenshot, with the attachment filename  in quotes, then the description as the filename with no quotes. Here is an example of the relevant headers from the Outlook email:

Content-Type: application/msword;
	name="#2782339-v1-Southern_Expressway_RS485_Wiring_Audit_-_July_2008.DOC"
Content-Transfer-Encoding: base64
Content-Description: #2782339-v1-Southern_Expressway_RS485_Wiring_Audit_-_July_2008.DOC
Content-Disposition: attachment; filename=
	"#2782339-v1-Southern_Expressway_RS485_Wiring_Audit_-_July_2008.DOC"

When saving the attachment from KMail, it encloses the destination filename in quotes by default. This breaks kde's filetype associations due to the fact that the filename extension now includes a double quote e.g. KMail saves test.doc as "test.doc" - KDE then sees the document extension as .doc" and does not recognise the file type. 

This may well be due to Outlook's handling of attachment filenames (I haven't read the relevant RFC to see if it is compliant).

The workaround is to delete the quotes from KMail's Save As... dialog before saving the file, however it would be better if KMail stripped the quotes from the beginning and end of the filename automatically. Could this be added please, at least as a configurable option? We already have Outlook compatibility options for sending emails and invitations, so it shouldn't be too hard to add an option for receiving attachments also.
Comment 1 Rodney Baker 2008-10-08 12:21:55 UTC
Created attachment 27747 [details]
Partial screenshot showing how attachment is displayed in kmail
Comment 2 Rodney Baker 2008-10-08 12:22:56 UTC
Created attachment 27748 [details]
Screen shot of Save As dialog showing filename in quotes.
Comment 3 Mano 2010-01-21 23:34:09 UTC
I still suffer from that today end of January 2010 on Fedora 12 with kde4.3.4 and Kmail 1.12.4
Comment 4 Rodney Baker 2012-02-13 04:57:27 UTC
This is still an issue with KMail 1.13.7 on KDE 4.6.5
Comment 5 Laurent Montel 2012-07-27 12:23:37 UTC
Still valid in 4.9 ?
If yes could you send me an email example please ?
Comment 6 Rodney Baker 2012-07-27 13:20:17 UTC
Don't know - still running 4.6.5. I haven't updated to KMail2 for various reasons - I'm running 1.13.7 - so I can't say whether or not it is still in 4.9 or not, but if nothing has been done about it since 4.6.5 then I'm guessing it will be. I will try sending an email with attachment from Outlook when I get to work next week so you can check how 4.9 handles it.
Comment 7 Laurent Montel 2012-07-27 13:33:40 UTC
Ok thanks
Comment 8 Laurent Montel 2012-08-17 16:27:42 UTC
No news :)
Comment 9 Rodney Baker 2012-08-17 17:37:15 UTC
(In reply to comment #8)
> No news :)

Sorry - haven't had a chance to try it out, yet, like I promised I would. Give me until Monday (since it is now Friday night and I need to be at work to test it).
Comment 10 Laurent Montel 2012-08-17 17:49:38 UTC
No problem :)
I have some other bugs to fix :)
Comment 11 Myriam Schweingruber 2012-08-18 07:48:04 UTC
Thank you for your feature request. Kmail1 is currently unmaintained so we are closing all wishes. Please feel free to reopen a feature request for Kmail2 if it has not already been implemented.
Thank you for your understanding.
Comment 12 Luigi Toscano 2012-08-19 00:18:34 UTC
Instead of creating a new feature request, please confirm here if the wishlist is still valid for kmail2.