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

VMAIL_ERROR: Please log in via your web browser #202

Open
TheGrandmother opened this issue Mar 15, 2016 · 6 comments
Open

VMAIL_ERROR: Please log in via your web browser #202

TheGrandmother opened this issue Mar 15, 2016 · 6 comments

Comments

@TheGrandmother
Copy link

I keep getting this error when i try to use Vmail.

I also got an email from google saying that a login attempt was prohibited from an app not fulfilling security standards.

Starting vmail 2.9.6
Setting VMAIL_BROWSER to 'gnome-open'
Setting VMAIL_HTML_PART_READER to 'w3m -dump -T text/html -I utf-8 -O utf-8'
Changing working directory to /home/grandmother/.vmail/default
Using config file: .vmailrc
No contacts file found for auto-completion. See help for how to generate it.
Enter gmail password (won't be visible & won't be persisted):

Starting vmail imap client for [email protected]
INBOX polling disabled.
Working directory: /home/grandmother/.vmail/default
Checking vmail.db version... OK
Connecting to database
Starting Vmail::ImapClient in dir /home/grandmother/.vmail/default
VMAIL_ERROR:  Please log in via your web browser: https://support.google.com/mail/accounts/answer/78754 (Failure)
/usr/lib/ruby/1.9.1/net/imap.rb:1141:in `get_tagged_response'
/usr/lib/ruby/1.9.1/net/imap.rb:1195:in `block in send_command'
/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/usr/lib/ruby/1.9.1/net/imap.rb:1177:in `send_command'
/usr/lib/ruby/1.9.1/net/imap.rb:419:in `login'
/var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:68:in `open'
/var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:526:in `start'
/var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:532:in `daemon'
/var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail.rb:136:in `start_imap_daemon'
/var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail.rb:29:in `start'
/var/lib/gems/1.9.1/gems/vmail-2.9.6/bin/vmail:14:in `<top (required)>'
/usr/local/bin/vmail:23:in `load'
/usr/local/bin/vmail:23:in `<main>'
Starting gmail service at druby://grandmother-lap:40193
/usr/lib/ruby/1.9.1/net/imap.rb:1143:in `get_tagged_response': Unknown command i133mb29434682lfd (Net::IMAP::BadResponseError)
        from /usr/lib/ruby/1.9.1/net/imap.rb:1195:in `block in send_command'
        from /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
        from /usr/lib/ruby/1.9.1/net/imap.rb:1177:in `send_command'
        from /usr/lib/ruby/1.9.1/net/imap.rb:526:in `block in list'
        from /usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
        from /usr/lib/ruby/1.9.1/net/imap.rb:525:in `list'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:166:in `list_mailboxes'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:198:in `mailboxes'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:185:in `block (3 levels) in mailbox_aliases'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:184:in `each'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:184:in `block (2 levels) in mailbox_aliases'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:183:in `each'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:183:in `block in mailbox_aliases'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:182:in `each'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:182:in `mailbox_aliases'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail/imap_client.rb:92:in `select_mailbox'
        from /usr/lib/ruby/1.9.1/drb/drb.rb:1083:in `method_missing'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail.rb:82:in `select_mailbox'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/lib/vmail.rb:30:in `start'
        from /var/lib/gems/1.9.1/gems/vmail-2.9.6/bin/vmail:14:in `<top (required)>'
        from /usr/local/bin/vmail:23:in `load'
        from /usr/local/bin/vmail:23:in `<main>'

I have my gmail setup to allow IMAP.

@tdroxler
Copy link

tdroxler commented Apr 28, 2016

You can allow less secure applications here: https://www.google.com/settings/security/lesssecureapps

@kiteloopdesign
Copy link

Same story here. What are the dangers associated with doing this ?

@alazyworkaholic
Copy link

i'm also having the same problem starting vmail. I enabled both IMAP & less secure access but still get the VMAIL_ERROR line, and the 'get_tagged_response': Unknown command j25mb188613092ivg (Net::IMAP::BadResponseError)

What to do?

@alazyworkaholic
Copy link

alazyworkaholic commented Nov 24, 2018

Besides the above, it seems that my ~/.vmail/default/.vmailrc gets deleted every time I try to run vmail.

@notalex
Copy link
Collaborator

notalex commented Dec 3, 2018

@alazyworkaholic, please capture the log from ~/.vmail/<folder_name>/vmail.log while you run vmail. This wil help us debug this issue further.

https://github.com/danchoi/vmail/wiki/Provide-debug-information-when-reporting-issues

@notalex
Copy link
Collaborator

notalex commented Dec 4, 2018

If you generate an App password on Google as per the wiki documentation, then vmail can be used alongwith 2-step-verification.

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

5 participants