From 9051a249b617b2f714a1eeb82e8983535b14a7ba Mon Sep 17 00:00:00 2001 From: barrydegraaff Date: Sun, 25 Oct 2015 15:23:40 +0100 Subject: [PATCH] fixing a bug, do not hide multipart/alternative messages that have no PGP content --- .../tk_barrydegraaff_zimbra_openpgp.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js index 59da7fb..dc74f04 100644 --- a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js +++ b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js @@ -244,7 +244,10 @@ tk_barrydegraaff_zimbra_openpgp.prototype.onMsgView = function (msg, oldMsg, msg pgpmime = true; if(bodynode) { - bodynode.innerHTML = ''; + if ( bodynode.innerHTML.indexOf("BEGIN PGP MESSAGE") > 0 ) + { + bodynode.innerHTML = ''; + } } } else