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

No way to tell if I'm logged in #80

Open
michaelfward opened this issue Mar 19, 2015 · 0 comments
Open

No way to tell if I'm logged in #80

michaelfward opened this issue Mar 19, 2015 · 0 comments

Comments

@michaelfward
Copy link

This code snippet should explain it:
require 'gmail'

username = ARGV[0]
password = ARGV[1]

gmail = Gmail.new(username, password)
puts "success!" if gmail.logged_in? == true

is there no other way to check? I've tried a few different methods, but I get IMAP errors and the script crashes instead of just giving me a "false" back.

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

1 participant