sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 9cac7b14eef40e6d1ed68a9cb9a303aa352ae517
parent d963bd3760f48aee19227c24596fc1654adeccf2
Author: Rich Lane <rlane@club.cc.cmu.edu>
Date:   Thu, 25 Mar 2010 20:06:53 -0700

fix subdir

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, "#{subdir}/").to_a }
-      new_ids = benchmark(:glob) { Dir.glob("#{@dir}/#{subdir}/*").map { |x| x[@dir.length..-1] }.sort }
+      new_ids = benchmark(:glob) { Dir.glob("#{subdir}/*").map { |x| x[@dir.length..-1] }.sort }
       added = new_ids - old_ids
       deleted = old_ids - new_ids
       info "#{added.size} added, #{deleted.size} deleted"