diff options
author | mathieui <mathieui@mathieui.net> | 2013-08-06 19:09:13 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2013-08-06 19:09:13 +0200 |
commit | 703cd1b9586a035ab9f7f76786a04d3019fd5818 (patch) | |
tree | 040478d891fd855ac2f39ef97c75cc7e4f76e01e /plugins/gpg/__init__.py | |
parent | 3e7353758ead6254010296abd04e5871dfaa0df7 (diff) | |
download | poezio-703cd1b9586a035ab9f7f76786a04d3019fd5818.tar.gz poezio-703cd1b9586a035ab9f7f76786a04d3019fd5818.tar.bz2 poezio-703cd1b9586a035ab9f7f76786a04d3019fd5818.tar.xz poezio-703cd1b9586a035ab9f7f76786a04d3019fd5818.zip |
Don’t send the xhtml body with a gpg-encrypted message
(bug introduced after a change in the attribute name)
Diffstat (limited to 'plugins/gpg/__init__.py')
-rw-r--r-- | plugins/gpg/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/gpg/__init__.py b/plugins/gpg/__init__.py index c6945e18..a6ecf865 100644 --- a/plugins/gpg/__init__.py +++ b/plugins/gpg/__init__.py @@ -237,7 +237,7 @@ class Plugin(BasePlugin): if veryfied: # remove the xhtm_im body if present, because that # cannot be encrypted. - del message['xhtml_im'] + del message['html'] encrypted_element = ET.Element('{%s}x' % (NS_ENCRYPTED,)) text = self.gpg.encrypt(message['body'], self.config.get(to.bare, '', section='keys'), always_trust=True) if not text: |