Bug 118344

Summary: e-mail attachment in e-mail message is incorrectly coded
Product: [Unmaintained] kmail Reporter: Freek de Kruijf <f.de.kruijf>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal CC: martin
Priority: NOR    
Version First Reported In: 1.9   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Freek de Kruijf 2005-12-14 21:12:00 UTC
Version:           1.9 (using KDE 3.5.0 Level "a" , SUSE 9.2 UNSUPPORTED)
Compiler:          gcc version 3.3.4 (pre 3.3.5 20040809)
OS:                Linux (i686) release 2.6.8-24.18-default

When forwarding an e-mail messages as an attachment kmail encodes the message incorrectly.

The first line in the header of the attached message is longer than 74 characters. The MIME header for this message is generated as:

--Boundary-00=_649nDiPVBWsh5Jh
Content-Type: message/rfc822;
  name="forwarded message"
Content-Transfer-Encoding: quoted-printable
Content-Description: "xxx yyy" <some@address.com>: subject of message
Content-Disposition: inline

Note the encoding is quoted printable. The first few lines of the attached message are (there is an empty line between the above last line and non empty line below):

Received: from localhost ([123.126.135.50]) by hhhhhh06.hhhhhh.nl with Micr=

osoft SMTPSVC(5.0.2195.6874);
	 Wed, 14 Dec 2005 09:47:41 +0100
Received: from [205.248.102.79] (port=3D25 helo=3Dmailc.microsoft.com)

Decoding the above inserts a <CR><LF> between "Micr" and "osoft" which should not be there.
Note the empty line between the first and the third line. This empty line should not be there.
Comment 1 Martin Koller 2009-09-13 21:25:02 UTC
can't reproduce with KDE 4.3.1