sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 67dc1ab6be5095e07bd1ee24487763c342587a2a
parent e457294b1aee933c35883e9524835a5ec4dbc89d
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Sat,  3 Apr 2010 09:53:40 -0700

workaround bad interaction between Singleton and Enumerator

Diffstat:
M lib/sup/maildir.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb
@@ -94,7 +94,7 @@ class Maildir < Source
       next if prev_mtime >= mtime
       @mtimes[d] = mtime
 
-      old_ids = benchmark(:index) { Enumerator.new(Index, :each_source_info, self.id, "#{d}/").to_a }
+      old_ids = benchmark(:index) { Enumerator.new(Index.instance, :each_source_info, self.id, "#{d}/").to_a }
       new_ids = benchmark(:glob) { Dir.glob("#{subdir}/*").map { |x| File.basename x }.sort }
       added = new_ids - old_ids
       deleted = old_ids - new_ids