Enable encryption for signed messages.
This commit is contained in:
parent
b6e4a321e6
commit
44d94c85ad
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ def send_msg( message, recipients = None ):
|
|||
def encrypt_payload( payload, gpg_to_cmdline ):
|
||||
gpg = GnuPG.GPGEncryptor( cfg['gpg']['keyhome'], gpg_to_cmdline, payload.get_content_charset() )
|
||||
raw_payload = payload.get_payload(decode=True)
|
||||
if ("-----BEGIN PGP MESSAGE-----" in raw_payload and "-----END PGP MESSAGE-----" in raw_payload) or ("-----BEGIN PGP SIGNED MESSAGE-----" in raw_payload):
|
||||
if "-----BEGIN PGP MESSAGE-----" in raw_payload and "-----END PGP MESSAGE-----" in raw_payload:
|
||||
return payload
|
||||
gpg = GnuPG.GPGEncryptor( cfg['gpg']['keyhome'], gpg_to_cmdline, payload.get_content_charset() )
|
||||
gpg.update( raw_payload )
|
||||
|
|
Loading…
Reference in a new issue