From: Andrew Engelbrecht Date: Wed, 22 Jul 2015 23:43:35 +0000 (-0400) Subject: only quote the message if we are going to encrypt. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;ds=sidebyside;h=2694709ad75816776efeb8b877f0f151f7a94ab6;p=edward.git only quote the message if we are going to encrypt. --- diff --git a/edward b/edward index ca8d4f7..90253de 100755 --- 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']