From 1ffc0add02bfbecc663608873aa6d421c65a2fc1 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sun, 10 Dec 2006 20:26:32 +0000 Subject: [PATCH] whoopsie! new message should be new. 0.0.2a git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@80 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/imap.rb | 2 +- lib/sup/mbox/loader.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/sup/imap.rb b/lib/sup/imap.rb index 148b67f..41c3c0f 100644 --- a/lib/sup/imap.rb +++ b/lib/sup/imap.rb @@ -16,7 +16,7 @@ class IMAP < Source @username = username @password = password @imap = nil - @labels = [] + @labels = [:unread] @labels << mailbox.intern unless mailbox =~ /inbox/i || mailbox.empty? @labels << :inbox unless archived? diff --git a/lib/sup/mbox/loader.rb b/lib/sup/mbox/loader.rb index 31e221e..5f2c088 100644 --- a/lib/sup/mbox/loader.rb +++ b/lib/sup/mbox/loader.rb @@ -16,7 +16,7 @@ class Loader < Source @f = File.open @filename ## heuristic: use the filename as a label, unless the file ## has a path that probably represents an inbox. - @labels = [] + @labels = [:unread] @labels << File.basename(@filename).intern unless File.dirname(@filename) =~ /\b(var|usr|spool)\b/ end -- 2.45.2