Skip to content

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

@michaelfward

Description

@michaelfward

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions