{"action":"created","issue":{"url":"https://api.github.com/repos/barrydegraaff/pgp-zimlet/issues/53","labels_url":"https://api.github.com/repos/barrydegraaff/pgp-zimlet/issues/53/labels{/name}","comments_url":"https://api.github.com/repos/barrydegraaff/pgp-zimlet/issues/53/comments","events_url":"https://api.github.com/repos/barrydegraaff/pgp-zimlet/issues/53/events","html_url":"https://github.com/barrydegraaff/pgp-zimlet/issues/53","id":54466187,"number":53,"title":"Problem with mail signing","user":{"login":"tuanta","id":975710,"avatar_url":"https://avatars.githubusercontent.com/u/975710?v=3","gravatar_id":"","url":"https://api.github.com/users/tuanta","html_url":"https://github.com/tuanta","followers_url":"https://api.github.com/users/tuanta/followers","following_url":"https://api.github.com/users/tuanta/following{/other_user}","gists_url":"https://api.github.com/users/tuanta/gists{/gist_id}","starred_url":"https://api.github.com/users/tuanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuanta/subscriptions","organizations_url":"https://api.github.com/users/tuanta/orgs","repos_url":"https://api.github.com/users/tuanta/repos","events_url":"https://api.github.com/users/tuanta/events{/privacy}","received_events_url":"https://api.github.com/users/tuanta/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-01-15T16:01:00Z","updated_at":"2015-01-26T12:08:18Z","closed_at":"2015-01-26T12:08:18Z","body":"Sign functions work incorrectly.\r\n\r\nI tried to send a signed message to myself. Both messages in Sent and Inbox could be not verified.\r\nIt shows \"Got a BAD signature\".\r\nIt's too late today (almost midnight here). I will look into the code tomorrow morning."},"comment":{"url":"https://api.github.com/repos/barrydegraaff/pgp-zimlet/issues/comments/71451595","html_url":"https://github.com/barrydegraaff/pgp-zimlet/issues/53#issuecomment-71451595","issue_url":"https://api.github.com/repos/barrydegraaff/pgp-zimlet/issues/53","id":71451595,"user":{"login":"barrydegraaff","id":4353213,"avatar_url":"https://avatars.githubusercontent.com/u/4353213?v=3","gravatar_id":"","url":"https://api.github.com/users/barrydegraaff","html_url":"https://github.com/barrydegraaff","followers_url":"https://api.github.com/users/barrydegraaff/followers","following_url":"https://api.github.com/users/barrydegraaff/following{/other_user}","gists_url":"https://api.github.com/users/barrydegraaff/gists{/gist_id}","starred_url":"https://api.github.com/users/barrydegraaff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barrydegraaff/subscriptions","organizations_url":"https://api.github.com/users/barrydegraaff/orgs","repos_url":"https://api.github.com/users/barrydegraaff/repos","events_url":"https://api.github.com/users/barrydegraaff/events{/privacy}","received_events_url":"https://api.github.com/users/barrydegraaff/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T12:08:18Z","updated_at":"2015-01-26T12:08:18Z","body":"The bug with the Zimbra Mail Signatures is caused by:\r\ncontroller._setFormat(Dwt.TEXT);\r\nIn the Zimlet code, if a user has no HTML formatted Signatures (not to be confused with PGP signatures) the switch to Dwt.TEXT goes without problems.\r\n\r\nBut if a HTML signature is inserted by Zimbra, `controller` also detects the change to TEXT mode, trowing a message to the end-user and then it all goes bad.\r\n\r\nPossible solutions:\r\n1. Automatically call 'Do Not Attach Signature'   but right now do not understand the implementation of this in Zimbra\r\n2. Add a TEXT_PLAIN signature and apply it to the message source, some hints here http://www.zimbrafr.org/forum/topic/4247-zimlet-creation-signature/   but right now cannot add a signature to the current open message (not documented by Zimbra?)\r\n3. Add a mime type to Zimbra (following RFC) and put the PGP data there, no longer use TEXT_PLAIN for that, will solve the issue\r\n4. Another option??\r\n5. Annoy end users with a message saying to disable Email Signatures, right now implemented pending someone finding out option 1-4?"}}