From 703cd1b9586a035ab9f7f76786a04d3019fd5818 Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 6 Aug 2013 19:09:13 +0200 Subject: =?UTF-8?q?Don=E2=80=99t=20send=20the=20xhtml=20body=20with=20a=20?= =?UTF-8?q?gpg-encrypted=20message?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (bug introduced after a change in the attribute name) --- plugins/gpg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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: -- cgit v1.2.3