Bug 241929

Summary: Debian creates invalid mime attachment when attaching file with enter in filename
Product: [Applications] kmail Reporter: Clara Gnos <clara.gnos>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal    
Priority: NOR    
Version: 1.13.3   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Mail created by kmail
Tar with example file with enter in filename

Description Clara Gnos 2010-06-16 22:20:03 UTC
Created attachment 48061 [details]
Mail created by kmail

Version:           1.13.3
OS:                Linux

I attached  simple file with an enter in the filename in kmails composer and noticed that the resulting mails always have a complete destroyed mime attachment. I attach a test.mbox with such an email created by kmail and a test_enter.tar which has an example file included with an enter in its filename

Reproducible: Didn't try

Steps to Reproduce:
 1. open kmail
 2. press "new"
 3. attach file with enter in filename
 4. press message -> "save as draft" (send would also work, but this is easier for an local test)
 5. Go into your drafts folder
 6. open mail you send
 7. press right mouse on the attachment symbol
 8. click on "open with..."
 9. open it with kate

Actual Results:  
The file you attached now starts with something like:

%2Etxt
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename*=us-ascii''test
%2Etxt

and after that there is the actual file data

Expected Results:  
Just get the file data without that scrambled mime header stuff
Comment 1 Clara Gnos 2010-06-16 22:21:48 UTC
Created attachment 48062 [details]
Tar with example file with enter in filename
Comment 2 Laurent Montel 2015-04-12 10:02:15 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.