Ok. Here are some examples.
1. Html message without attachments, with signature
After my signature fix (removing the signature from the body):
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
After my signature fix, still the green box with "Message decrypted" is not displayed, because of the incorrect mime_id.
After fixing the mime_id:
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: attachment;
filename=globdata.ini;
size=1110
//5bAFAAcgBvAGQAdQBjAHQATgBhAG0AZQ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ArACsAIAAyADAAMAA4ACAAUgBlAGQAaQBzAHQAcgBp
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--