[Tickets #14656] Corupted mail while reply/forward when original mail has s/mime signed and in html format

noreply at bugs.horde.org noreply at bugs.horde.org
Mon Jun 12 14:17:45 UTC 2017


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://bugs.horde.org/ticket/14656
------------------------------------------------------------------------------
  Ticket             | 14656
  Created By         | jiri.slezka at slu.cz
  Summary            | Corupted mail while reply/forward when original mail
                     | has s/mime signed and in html format
  Queue              | IMP
  Version            | 6.2.19
  Type               | Bug
  State              | Unconfirmed
  Priority           | 2. Medium
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


jiri.slezka at slu.cz (2017-06-12 14:17) wrote:

Hello,

if you receive mail that is s/mime signed and in html format and you  
try to reply or forward it in html format, its content is corrupted  
(see attached screenshot - in the red rectangle).

The original mail has to be s/mime signed and in html format. The  
signed mail is commonly cresated in Thunderbird or MS Outlook. When it  
is signed and in plaintext or it is unsigned and in html Imp works  
fine. Also when you uncheck the "compose in html" checkbox all is  
working fine.

I believe it could be problem in parsing of multipart message. Part of  
headers of original mail follows

...
Content-Type: multipart/signed; protocol="application/pkcs7-signature";
micalg=sha-256; boundary="------------ms070302060509050603000208"

This is a cryptographically signed message in MIME format.

--------------ms070302060509050603000208
Content-Type: multipart/alternative;
  boundary="------------BCBB714262F81EB40298387E"
Content-Language: Cestina

This is a multi-part message in MIME format.
--------------BCBB714262F81EB40298387E
Content-Type: text/plain; charset=iso-8859-2; format=flowed
Content-Transfer-Encoding: quoted-printable

plaintext text


--------------BCBB714262F81EB40298387E
Content-Type: text/html; charset=iso-8859-2
Content-Transfer-Encoding: quoted-printable

<html>
html text
</html>

--------------BCBB714262F81EB40298387E--

--------------ms070302060509050603000208
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: Elektronicky podpis S/MIME

MIAGCSqGSIb3DQEHAqC....
...

The corrupted characters are utf-8 representation of smime.p7s bytes.




jiri.slezka at slu.cz (2017-06-12 14:17) uploaded: forwarding.png

https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=forwarding.png&ticket=14656&fn=%2Fforwarding.png





More information about the bugs mailing list