Bug 148705

Summary: kmail encrypted script attachments stored in MS-DOS format
Product: [Applications] kmail Reporter: Roman Fietze <kde>
Component: encryptionAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version: 1.9.7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Resulting MS-DOS format script file

Description Roman Fietze 2007-08-10 09:39:29 UTC
Version:            (using KDE KDE 3.5.7)
Installed from:    SuSE RPMs

Testcase:

- Attach a simple bash shell script and a small test text file to a mail.
  Do this twice, ene time using kmail, one time using mutt.

- Send the mails to a user encrypted.

- Read the mails using kmail and save all attachments

  The text file is always exactly as you sent it.
  The script file will be in MS-DOS format with CR-NL
  (seen in emacs, double checked with hex dumper) when read using kmail.
  The script file is ok when read or saved using mutt.

- Read the mail e.g. using mutt and save both attachments.

  Everything is fine.

- If you send the mail with the attachments unencrypted,
  even kmail does not save the script attachment in MS-DOS format.
Comment 1 Roman Fietze 2007-08-10 10:00:37 UTC
Created attachment 21361 [details]
Resulting MS-DOS format script file

I attachmed the file using application/octet-stream not to somehow screw its
format up.
Comment 2 Thomas McGuire 2007-08-10 12:24:21 UTC
Could this be the same as bug 66453? That one is also about line endings and encryption/signing.
Comment 3 Roman Fietze 2007-11-28 18:18:33 UTC
Still true in kmail Version 1.9.6 (enterprise 20070904.708012) using OpenSUSE 10.3 repos.
Comment 4 Roman Fietze 2008-12-15 08:26:33 UTC
Fixed in KDE 4.1.3. Hopefully KDE4 get's up to speed soon, so everybody can use it.
Comment 5 Roman Fietze 2010-10-25 21:07:16 UTC
I'm sorry, but I think I have to reopen this one.

Had it again on an openSUSE 11.2 x86_64 (sender) with KDE 4.5.2 and KMail 1.13.5 (User-Agent: KMail/1.13.5 (Linux/2.6.31.14-0.1-default; KDE/4.5.2; x86_64;).
Comment 6 Roman Fietze 2013-05-24 04:56:34 UTC
Works in kmail2