sup

A curses threads-with-tags style email client

sup.git

git clone https://supmua.dev/git/sup/
commit a3787adc0d19ba2a99f9d1191880468c08627b81
parent a11efaf82d446ea19527c38aacaa436b7fecc94a
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date:   Sat, 10 Feb 2007 20:12:51 +0000

fixed couting

git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@318 5c8cc53c-5e98-4d25-b20a-d8db53a31250

Diffstat:
M lib/sup/poll.rb | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git 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