Don’t send the xhtml body with a gpg-encrypted message

(bug introduced after a change in the attribute name)
This commit is contained in:
mathieui 2013-08-06 19:09:13 +02:00
parent 3e7353758e
commit 703cd1b958

View file

@ -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: