[Bug 287752] New: display of multipart/mixed html message messed up

Milian Wolff mail at milianw.de
Mon Nov 28 14:07:30 GMT 2011


https://bugs.kde.org/show_bug.cgi?id=287752

           Summary: display of multipart/mixed html message messed up
           Product: kmail2
           Version: Git (master)
          Platform: Unlisted Binaries
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdepim-bugs at kde.org
        ReportedBy: mail at milianw.de


Version:           Git (master)
OS:                Linux

I have an email that is completely broken when reading it in kmail2. here is
how I see it, note that I have configured kmail to always display plaintext if
possible. Furthermore I've replaced the actual contents of the email with
"#..." sections below, along with some comment. If you have questions, just
ask.

So here goes the mail, enclosed in ~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
--nextPart5494940.N5jNNXLpBq
Content-Type: multipart/alternative; boundary="nextPart5405349.qtCSgRVpqk"
Content-Transfer-Encoding: 7Bit


--nextPart5405349.qtCSgRVpqk
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"

# here is some readable message

On lundi 28 novembre 2011 00:24:05 you wrote:
> On Sunday 27 November 2011 23:36:43 XYZ wrote:

# quoted mail here, looks fine, but then:

--nextPart5405349.qtCSgRVpqk
Content-Transfer-Encoding: 7Bit
Content-Type: text/html; charset="us-ascii"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }

# lots more HTML here...

</p></body></html>
--nextPart5405349.qtCSgRVpqk--

--nextPart5494940.N5jNNXLpBq
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

# the signature

-----END PGP SIGNATURE-----
--nextPart5494940.N5jNNXLpBq--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+

Reproducible: Sometimes

Steps to Reproduce:
read an email like the above

Actual Results:  
garbage, results look like it displays the raw multipart mail

Expected Results:  
nicely formatted email

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list