From a3787adc0d19ba2a99f9d1191880468c08627b81 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Sat, 10 Feb 2007 20:12:51 +0000 Subject: [PATCH] fixed couting git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@318 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/poll.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.45.2