From: wmorgan Date: Mon, 12 Nov 2007 23:55:37 +0000 (+0000) Subject: bugfix in poll new-message counting from marcus williams X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=d72f9bc8106e208c5308830dc0b3aaac5a16307b;p=sup bugfix in poll new-message counting from marcus williams git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@696 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index 34feeab..5aed29b 100644 --- a/lib/sup/poll.rb +++ b/lib/sup/poll.rb @@ -100,7 +100,7 @@ EOS unless entry num += 1 from_and_subj << [m.from.longname, m.subj] - if m.labels.include? :inbox + if m.has_label?(:inbox) && ([:spam, :deleted, :killed] & m.labels).empty? from_and_subj_inbox << [m.from.longname, m.subj] numi += 1 end