From noreply at bugs.horde.org Mon Jun 12 10:39:05 2017 From: noreply at bugs.horde.org (noreply at bugs.horde.org) Date: Mon, 12 Jun 2017 10:39:05 +0000 Subject: [Incidencias #2782] Re: S/MIME Sign using browser capabilities In-Reply-To: References: Message-ID: <20170612103905.Horde.dwzYrPTBIWTDhCFvl5-xDUy@bugs.horde.org> NO CONTESTE A ESTE MENSAJE. ESTA DIRECCI?N NO SE CONSULTA. URL de la incidencia: https://bugs.horde.org/ticket/2782 ------------------------------------------------------------------------------ Incidencia | 2782 Actualizado por | alberto.garciasola at seap.minhap.es Resumen | S/MIME Sign using browser capabilities Cola | IMP Versi?n | HEAD Tipo | Enhancement Estado | Assigned Prioridad | 1. Low Milestone | Patch | Propietarios | Horde Developers, Michael Slusarz ------------------------------------------------------------------------------ alberto.garciasola at seap.minhap.es (2017-06-12 10:39) escribi?: Any news with respect this issue? From noreply at bugs.horde.org Mon Jun 12 14:17:45 2017 From: noreply at bugs.horde.org (noreply at bugs.horde.org) Date: Mon, 12 Jun 2017 14:17:45 +0000 Subject: [Tickets #14656] Corupted mail while reply/forward when original mail has s/mime signed and in html format Message-ID: 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 text --------------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 From noreply at bugs.horde.org Mon Jun 12 14:18:50 2017 From: noreply at bugs.horde.org (noreply at bugs.horde.org) Date: Mon, 12 Jun 2017 14:18:50 +0000 Subject: [Tickets #14656] Re: Corupted mail while reply/forward when original mail has s/mime signed and in html format In-Reply-To: References: Message-ID: <20170612141850.Horde.PXJCvdZfmgTCkTQ0A0yMAS8@bugs.horde.org> DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED. Ticket URL: https://bugs.horde.org/ticket/14656 ------------------------------------------------------------------------------ Ticket | 14656 Updated 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 text --------------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