sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 1e365c6fc75f7de811f2c057e5640f9f13ca7f46
parent 52d3e7fe4e169241cc6fe92d587da09cf1ff6d49
Author: Hamish Downer <dmishd@gmail.com>
Date:   Thu, 10 Feb 2011 00:41:14 +0000

fix silly mistakes

Diffstat:
M lib/sup/crypto.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/crypto.rb b/lib/sup/crypto.rb
@@ -69,7 +69,7 @@ EOS
     end
 
     gpg_agent_socket_file = ENV['GPG_AGENT_INFO'].split(':')[0]
-    unless file.exist?(gpg_agent_socket_file)
+    unless File.exist?(gpg_agent_socket_file)
       @not_working_reason = "gpg-agent socket file #{gpg_agent_socket_file} does not exist"
       return
     end
@@ -85,7 +85,7 @@ EOS
     end
   end
 
-  def have_crypto?; @gpgme_present end
+  def have_crypto?; @not_working_reason.nil? end
 
   def sign from, to, payload
     return unknown_status([@not_working_reason]) unless @not_working_reason.nil?