Open yanicklandry opened 11 years ago
On an active connection, the number of unread emails can go from 1 to 0, but not from 0 to 1.
# example : the number of unread emails is at 0 gmail = Gmail.new(...) puts "unread : #{gmail.inbox.count(:unread)}" # puts 0 # send a test email puts "unread : #{gmail.inbox.count(:unread)}" # still puts 0 gmail = Gmail.new(...) puts "unread : #{gmail.inbox.count(:unread)}" # puts 1 # read the email puts "unread : #{gmail.inbox.count(:unread)}" # puts 0
If you have a longer code example I can test, I'd like to try this out.
On an active connection, the number of unread emails can go from 1 to 0, but not from 0 to 1.