From 3a9d1426d051f9bf0bce134d374bdb8cce73a968 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Mon, 20 Jul 2015 11:25:01 -0400 Subject: [PATCH] check for keys in plaintext in decrypted blocks if the message is hand-rolled with gpg, there might be a key in there. but don't bother with recursive decryption unless they are using mime. --- edward | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edward b/edward index 49b72f4..6b189b6 100755 --- a/edward +++ b/edward @@ -109,6 +109,8 @@ def email_decode_flatten (email_text, gpgme_ctx, from_decryption): if from_decryption == True: body += payload + "\n" + keys += add_gpg_keys(payload, gpgme_ctx) + else: plaintext, more_keys = decrypt_text(payload, gpgme_ctx) -- 2.25.1