]> git.cworth.org Git - sup/commitdiff
bugfix in poll new-message counting from marcus williams
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 12 Nov 2007 23:55:37 +0000 (23:55 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Mon, 12 Nov 2007 23:55:37 +0000 (23:55 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@696 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/poll.rb

index 34feeabedc3da619a56a6dc94906b26317146a8a..5aed29b474d6970849c2b74c17effdeec5dcfb33 100644 (file)
@@ -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