From: Andrew Engelbrecht Date: Tue, 4 Aug 2015 21:41:33 +0000 (-0400) Subject: only quote message if there is a valid signature X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=2a285834bb3b01acc4292bb355a4073c2a19e694;p=edward.git 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. --- 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