From b93c3c29384b312a323011e2e7f6f02fa0414e47 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Thu, 21 Jan 2016 15:29:39 -0500 Subject: [PATCH] verify signatures even if key is new to edward previously when users sent edward their gpg key and signed that message with that key, users would not receive a message noting signature verification success. this commit processes emails twice so that keys are imported the first time and signatures are verified the second time around. it is not the most elegant method, but it works and lengthens run time very little. for now debug output mentions imported keys twice but debug output is not visible to users. --- edward | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edward b/edward index b13ac7a..060d6d6 100755 --- a/edward +++ b/edward @@ -271,6 +271,8 @@ def main (): edward_config.sign_with_key) email_bytes = sys.stdin.buffer.read() + + parse_pgp_mime(email_bytes, gpgme_ctx) email_struct = parse_pgp_mime(email_bytes, gpgme_ctx) email_to, email_reply_to, email_subject = email_to_reply_to_subject(email_bytes) -- 2.25.1