From 4d721e7769153238f83f2681a0b356590dbdb205 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Wed, 21 Feb 2007 03:31:32 +0000 Subject: [PATCH 1/1] whoops, archived? checking needs to go in poll git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@337 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/poll.rb | 1 + lib/sup/source.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index 8914d1d..4d1f1ef 100644 --- 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 index 02f661a..d3f96e1 100644 --- 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 -- 2.43.0