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:
parent
3e7353758e
commit
703cd1b958
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue