lib/sup/maildir.rb in sup-0.20.0 vs lib/sup/maildir.rb in sup-0.21.0

- old
+ new

@@ -66,11 +66,11 @@ end File.safe_link tmp_path, new_path stored = true ensure - File.unlink tmp_path if File.exists? tmp_path + File.unlink tmp_path if File.exist? tmp_path end end #rescue Errno... end #Dir.chdir stored @@ -199,10 +199,10 @@ def replied? id; maildir_data(id)[2].include? "R"; end def seen? id; maildir_data(id)[2].include? "S"; end def trashed? id; maildir_data(id)[2].include? "T"; end def valid? id - File.exists? File.join(@dir, id) + File.exist? File.join(@dir, id) end private def new_maildir_basefn