Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

count from 0 to 1 seems to not work #50

Open
yanicklandry opened this issue Jun 16, 2013 · 1 comment
Open

count from 0 to 1 seems to not work #50

yanicklandry opened this issue Jun 16, 2013 · 1 comment

Comments

@yanicklandry
Copy link

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
@myobie
Copy link
Collaborator

myobie commented Mar 28, 2014

If you have a longer code example I can test, I'd like to try this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants