From: wmorgan Date: Sat, 10 Feb 2007 20:12:51 +0000 (+0000) Subject: fixed couting X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=a3787adc0d19ba2a99f9d1191880468c08627b81;p=sup fixed couting git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@318 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/lib/sup/poll.rb b/lib/sup/poll.rb index f7c73bd..fb29fab 100644 --- a/lib/sup/poll.rb +++ b/lib/sup/poll.rb @@ -50,8 +50,10 @@ class PollManager ## always preserve the labels on disk. m.labels = entry[:label].split(/\s+/).map { |x| x.intern } if entry yield "Found message at #{offset} with labels {#{m.labels * ', '}}" - num += 1 - numi += 1 if m.labels.include? :inbox + unless entry + num += 1 + numi += 1 if m.labels.include? :inbox + end m end yield "Found #{num} messages, #{numi} to inbox" unless num == 0