From: wmorgan Date: Wed, 21 Feb 2007 04:08:38 +0000 (+0000) Subject: minor update: read detecting X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=08383713eb8a1cbb1f8d57bf30c7594ac2ed933b;p=sup minor update: read detecting git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@340 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/maildir.rb b/lib/sup/maildir.rb index f15befc..e817eee 100644 --- a/lib/sup/maildir.rb +++ b/lib/sup/maildir.rb @@ -17,7 +17,6 @@ class Maildir < Source @dir = URI(uri).path @ids = [] @ids_to_fns = {} - @labels = [:unread] @last_scan = nil @mutex = Mutex.new end @@ -78,7 +77,7 @@ class Maildir < Source start.upto(@ids.length - 1) do |i| id = @ids[i] self.cur_offset = id - yield id, @labels.clone + yield id, (@ids_to_fns[id] =~ /,.*R.*$/ ? [] : [:unread]) end end