sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 2eca999b022f43f7b951a251185a2698741bd24f
parent ec0fd5a40d300d0c82c680db131fe40572c86fdb
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Mon,  5 Apr 2010 13:45:40 -0700

fix Maildir#with_file_for exception path

Diffstat:
M lib/sup/maildir.rb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
@@ -146,8 +146,9 @@ private
   end
 
   def with_file_for id
+    fn = File.join(@dir, id)
     begin
-      File.open(File.join(@dir, id), 'rb') { |f| yield f }
+      File.open(fn, 'rb') { |f| yield f }
     rescue SystemCallError, IOError => e
       raise FatalSourceError, "Problem reading file for id #{id.inspect}: #{fn.inspect}: #{e.message}."
     end