only quote the message if we are going to encrypt.
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 22 Jul 2015 23:43:35 +0000 (19:43 -0400)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Mon, 7 Dec 2015 18:28:39 +0000 (13:28 -0500)
edward

diff --git a/edward b/edward
index ca8d4f7594a502cc2dbe0ef4bbe970788458a97d..90253de5f531c24eed0164aa34509072165bbef3 100755 (executable)
--- a/edward
+++ b/edward
@@ -423,9 +423,11 @@ def write_reply (replyinfo_obj):
     reply_plain = ""
 
     if replyinfo_obj.success_decrypt == True:
-        quoted_text = email_quote_text(replyinfo_obj.msg_to_quote)
         reply_plain += replyinfo_obj.replies['success_decrypt']
-        reply_plain += quoted_text
+
+        if replyinfo_obj.no_public_key == False:
+            quoted_text = email_quote_text(replyinfo_obj.msg_to_quote)
+            reply_plain += quoted_text
 
     elif replyinfo_obj.failed_decrypt == True:
         reply_plain += replyinfo_obj.replies['failed_decrypt']