sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 8d01432fac927395399a7f9af384c0543c98bdba
parent a8238ea2979bf9be7284bfd3b1fee3af3f27c303
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?