From bf9436735dfb975d018f359f01cc166049e2790a Mon Sep 17 00:00:00 2001 From: barrydegraaff Date: Sun, 25 Oct 2015 15:30:51 +0100 Subject: [PATCH] fixing a bug, do not hide multipart/alternative messages that have no PGP content --- README.md | 2 +- .../tk_barrydegraaff_zimbra_openpgp.js | 7 ------- .../tk_barrydegraaff_zimbra_openpgp.xml | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2ad0511..1b13b5b 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Bugs and feedback: https://github.com/barrydegraaff/pgp-zimlet/issues su zimbra cd /tmp rm tk_barrydegraaff_zimbra_openpgp* - wget https://github.com/barrydegraaff/pgp-zimlet-binaries/raw/master/1.8.1/tk_barrydegraaff_zimbra_openpgp.zip + wget https://github.com/barrydegraaff/pgp-zimlet-binaries/raw/master/1.8.2/tk_barrydegraaff_zimbra_openpgp.zip zmzimletctl deploy tk_barrydegraaff_zimbra_openpgp.zip (wait 15 minutes for the deploy to propagate; or zmprov fc all && zmmailboxdctl restart) diff --git a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js index dc74f04..636bcff 100644 --- a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js +++ b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.js @@ -242,13 +242,6 @@ tk_barrydegraaff_zimbra_openpgp.prototype.onMsgView = function (msg, oldMsg, msg { var msgSearch = ''; pgpmime = true; - if(bodynode) - { - if ( bodynode.innerHTML.indexOf("BEGIN PGP MESSAGE") > 0 ) - { - bodynode.innerHTML = ''; - } - } } else { diff --git a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml index 3cb1e50..28a6f3a 100644 --- a/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml +++ b/tk_barrydegraaff_zimbra_openpgp/tk_barrydegraaff_zimbra_openpgp.xml @@ -1,4 +1,4 @@ - + Zimbra OpenPGP Zimlet