sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 1832dc23c68d69a7d36e57e372dd9acc4a7b3c34
parent 12c5e1e63207102e5c78b4256641e69b257f07b3
Author: Hamish Downer <dmishd@gmail.com>
Date:   Fri,  4 Feb 2011 00:06:52 +0000

only do signature to_s when it will work

Diffstat:
M lib/sup/crypto.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
@@ -164,7 +164,9 @@ EOS
       end
     end
 
-    summary_line = simplify_sig_line(verify_result.signatures[0].to_s, all_trusted)
+    if valid || !unknown
+      summary_line = simplify_sig_line(verify_result.signatures[0].to_s, all_trusted)
+    end
 
     if all_output_lines.length == 0
       Chunk::CryptoNotice.new :valid, "Encrypted message wasn't signed", all_output_lines