sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit 4d721e7769153238f83f2681a0b356590dbdb205
parent 407e4764e28f7cb10aff99be3169a51c08b6692b
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Wed, 21 Feb 2007 03:31:32 +0000

whoops, archived? checking needs to go in poll

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@337 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/poll.rb | 1 +
M lib/sup/source.rb | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb
@@ -91,6 +91,7 @@ class PollManager
         end
       
         labels.each { |l| LabelManager << l }
+        labels += [:inbox] unless source.archived?
 
         begin
           m = Message.new :source => source, :source_info => offset, :labels => labels
diff --git a/lib/sup/source.rb b/lib/sup/source.rb
@@ -95,7 +95,7 @@ class Source
       until done? || broken? # just like life!
         n, labels = self.next
         raise "no message" unless n
-        yield n, labels + (archived? ? [] : [:inbox])
+        yield n, labels
       end
     rescue SourceError => e
       self.broken_msg = e.message