only quote message if there is a valid signature
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Tue, 4 Aug 2015 21:41:33 +0000 (17:41 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:29:54 +0000 (13:29 -0500)
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

diff --git a/edward b/edward
index d003e128688a82f651d97800c50312f67e914e9b..509fd95e2c9a09456f604310da57576c421352d4 100755 (executable)
--- 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