commit 08383713eb8a1cbb1f8d57bf30c7594ac2ed933b
parent 3206b4b3d29a3df3d32f70aa3258d43b6cece346
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Wed, 21 Feb 2007 04:08:38 +0000
minor update: read detecting
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@340 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git 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