check for keys in plaintext in decrypted blocks
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 20 Jul 2015 15:25:01 +0000 (11:25 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:16:28 +0000 (13:16 -0500)
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

diff --git a/edward b/edward
index 49b72f4acf4ba6d693df8d5ac4d4a7fe9d583b89..6b189b6df972e7c646787e692730813eb878e389 100755 (executable)
--- 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)