From 2a285834bb3b01acc4292bb355a4073c2a19e694 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Tue, 4 Aug 2015 17:41:33 -0400 Subject: [PATCH] only quote message if there is a valid signature there still needs to be work to ensure that the encryption target key is the same as the one that was used in the first block of encrypted and verifiably signed text. --- edward | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edward b/edward index d003e12..509fd95 100755 --- a/edward +++ b/edward @@ -916,7 +916,7 @@ def write_reply (replyinfo_obj): if replyinfo_obj.success_decrypt == True: reply_plain += replyinfo_obj.replies['success_decrypt'] - if replyinfo_obj.no_public_key == False: + if (replyinfo_obj.sig_success == True) and (replyinfo_obj.no_public_key == False): quoted_text = email_quote_text(replyinfo_obj.msg_to_quote) reply_plain += quoted_text -- 2.25.1