sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 1ffc0add02bfbecc663608873aa6d421c65a2fc1
parent 81c79257be3e2d25dff56f395240cb99587a88f2
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sun, 10 Dec 2006 20:26:32 +0000

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

Diffstat:
M lib/sup/imap.rb | 2 +-
M 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
@@ -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
@@ -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