Ok. Here are some examples.

1. Html message without attachments, with signature

Inline image 1

After my signature fix (removing the signature from the body):

Inline image 2
Decrypted message:

Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="=_0c385807db1dba6581d6bbd4722d8e94"

--=_0c385807db1dba6581d6bbd4722d8e94
Content-Type: multipart/alternative;
 boundary="=_0c385807db1dba6581d6bbd4722d8e94"

--=_0c385807db1dba6581d6bbd4722d8e94
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII

asd 

asd 

asd 

asasd
--=_0c385807db1dba6581d6bbd4722d8e94
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p>asd</p>
<p>asd</p>
<p>asd</p>
<p>asasd</p>
</body></html>

--=_0c385807db1dba6581d6bbd4722d8e94--


--=_0c385807db1dba6581d6bbd4722d8e94
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=819
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJWl6xjAAoJEKs78blfWHHjIPYP/2eR0BKXEQzAFrQy8mdutIYS
/Pa5NqUDFgGaUFfGiBSBCAAfNSbaLnTtdIzSRHttuu8X8vF+J/b5CdAJsvMAuZg4
sXHgqCX4oRhDoVCxEV3PMCfWyEjD6+Yr6T8mKjkwI7CRE2osMrfWlnROH4rWsk2a
kOQyCh3olqw++f5DfJSh9o86bzqD/OmY6Hb0g4NNxybFXZYSDWJIYLoD4v1PIyxr
jmnGCzYK1C2gKZVGgLN+W4vBdAARJR1iEHY6+oIZK8kUgeML+IUk5tL/Axc80av3
RswHAOwaFQmpORBJMe592w9wX4d/6mbDfLYmfm9MSih2V9VscxYuPwiINtsUJTt/
v07jqAszq4gAs9NZrJWTWxUaiXGxATWCOEl0TJyOO1mxj5H05rvLxsDBCpNc2d13
BQu1YRlZP4HyliKD3AtFI8zFW5cyeOUoUp3YXQbFl2N8tEDsxAy58HOCQY3IFpOV
MpHAPNrvgxdkdyW3nqWT3wW4MtGYL83HUtkjmM/3g1zIzqKPlhXSugoZLzNEMGHm
qZoSqZz83dBm01KyDWEk55uhIkU6T9l7LEv8eAZEuTwEo+oIfY3cFPGW+2T6AWE1
t9CPaeHAu8Ov8yvwOKqcwpx6xz9L6zjw7uX9i07kgpFQd57iclxqEMqQnMWyp/K7
diMfjvwVRtgaFqafs4WZ
=+wIM
-----END PGP SIGNATURE-----

--=_0c385807db1dba6581d6bbd4722d8e94--


2. HTML message + attachment + signature

Inline image 5

After my signature fix, still the green box with "Message decrypted" is not displayed, because of the incorrect mime_id.

Inline image 3
After fixing the mime_id:

Inline image 4


Decrypted message:

Content-Type: multipart/signed; micalg=pgp-sha1;
 protocol="application/pgp-signature";
 boundary="=_bfe7c275050be5c5d1053ae2d62df650"

--=_bfe7c275050be5c5d1053ae2d62df650
Content-Type: multipart/mixed;
 boundary="=_bfe7c275050be5c5d1053ae2d62df650"

--=_bfe7c275050be5c5d1053ae2d62df650
Content-Type: multipart/alternative;
 boundary="=_dd34536bafebf8a1aa2873136c89542f"

--=_dd34536bafebf8a1aa2873136c89542f
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII

asda 

asd 

asdasd
--=_dd34536bafebf8a1aa2873136c89542f
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=UTF-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=
=3DUTF-8" /></head><body style=3D'font-size: 10pt; font-family: Verdana,Gen=
eva,sans-serif'>
<p>asda</p>
<p>asd</p>
<p>asdasd</p>
</body></html>

--=_dd34536bafebf8a1aa2873136c89542f--

--=_bfe7c275050be5c5d1053ae2d62df650
Content-Transfer-Encoding: base64
Content-Type: text/plain;
 name=globdata.ini
Content-Disposition: attach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ADAAPQBNAGkAYwByAG8A
cwBvAGYAdAAgAFYAaQBzAHUAYQBsACAAQwArACsAIAAyADAAMAA4ACAAUgBlAGQAaQBzAHQAcgBp
AGIAdQB0AGEAYgBsAGUADQAKAFAAcgBvAGQAdQBjAHQATgBhAG0AZQAuADEAMAAzADEAPQBNAGkA
YwByAG8AcwBvAGYAdAAgAFYAaQBzAHUAYQBsACAAQwArACsAIAAyADAAMAA4ACAAUgBlAGQAaQBz
AHQAcgBpAGIAdQB0AGEAYgBsAGUADQAKAFAAcgBvAGQAdQBjAHQATgBhAG0AZQAuADMAMAA4ADIA
PQBNAGkAYwByAG8AcwBvAGYAdAAgAFYAaQBzAHUAYQBsACAAQwArACsAIAAyADAAMAA4ACAAUgBl
AGQAaQBzAHQAcgBpAGIAdQB0AGEAYgBsAGUA
--=_bfe7c275050be5c5d1053ae2d62df650--


--=_bfe7c275050be5c5d1053ae2d62df650
Content-Type: application/pgp-signature;
 name=signature.asc
Content-Disposition: attachment;
 filename=signature.asc;
 size=819
Content-Description: OpenPGP digital signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJWl6y5AAoJEKs78blfWHHjebsP/iMnmeb2qkvwLRh98WB4LRfl
ZSaYKiW6EP+JHHX0gNcqp/ofU9HwGWDHMuR7k5nhmVk9b/eD/MGFAlvjHQa47b44
qUzUvjz46aajTyAgUkUmV44IFEHAasX09DkhL+MO8dYf0pDWbAru0RjVV89QOEUC
srLMQR3kNDHnf1A0KX9k2KDsF1x+kUo62ZEpCdVLKLErcDPuXb7mapx8eKjihXKo
LG3beSIKVHKFz07ZZehtPG+Ed/9BnbgOAEqjDOe6w4L8isoR+KUXHJOtp5tCDUQK
1eRIxAsLjsQsvOGxBiMsyo1opiok4JWj4Zqu8VPJZENCDbJ7jXQfPHtM57GZ0jXb
219N80xT9jBOqtQWVKKM0BeqGf/kn8vRpUSJr5qervsO8JvRPkzduqZ9JXewQPhP
FrSadPiyqd8kF4VGpULpvB7ckxETUJjadoKVheF44r+0oVoEqHCnkIQpFZuKkjpH
JbvMrAqHJXMNmEd1W0e2B1b2FBe02iMJ1DzvP0Kj5PVgrjiqXF6mhwkCpO5xxiwf
H8dE6cCW2ReGbF5NdrbmySPsEmKXnW4o4GGU8pSrs0W1xHyTk+JRjRlAhS7vK9+W
5wjukEDE42tbBtycFn1AKZSKBsL9UVTXcXAqLkDANefQOkL5q9wGOxW77EGoZySE
fsORbWccIz9TDbwxwFRH
=Oa6W
-----END PGP SIGNATURE-----

--=_bfe7c275050be5c5d1053ae2d62df650--





On Mon, Jan 18, 2016 at 10:36 AM, A.L.E.C <alec@alec.pl> wrote:
On 01/18/2016 10:18 AM, devotedmystic . wrote:
> Anyway, if you send an encrypted message to yourself, you will see that
> only a plain text message without attachments works (do the test with
> signature included). You see the green squared message that it was
> decrypted, and the decrypted text.
>
> Any other combination (html, attachments) fails to decrypt and you get a
> blank page.
>
> The main issue with parsing the correct content type is the "^"
> character, which failed on my system. Maybe, Debian systems expect just
> a "\n" and instead the files also contain "\r". There is no issue
> removing the "^" and all works.
>
> The issue with attachments is that the wrong (incomplete) mime_id was
> passed. Thus, decryption hung and you saw again the blank page. That's
> why I updated with the "1.2" value, which is the usual position of the
> text when there are attachments, and all worked. I saw this printing the
> structure of the message and comparing it to a text plain email without
> attachment.
>
> Last, if the message contained a signature, it displayed the usual blank
> page again, because Roundcube parser does not take into account
> signatures. So you need to remove it from the body before passing it to
> Roundcube functions.

As I've said before, all of this works for me. That why I need message
samples.

--
Aleksander 'A.L.E.C' Machniak
Kolab Groupware Developer        [http://kolab.org]
Roundcube Webmail Developer  [http://roundcube.net]
---------------------------------------------------
PGP: 19359DC1 @@ GG: 2275252 @@ WWW: http://alec.pl
_______________________________________________
Roundcube Development discussion mailing list
dev@lists.roundcube.net
http://lists.roundcube.net/mailman/listinfo/dev