danchoi / vmail

a vim interface for gmail
http://danielchoi.com/software/vmail.html
MIT License
785 stars 59 forks source link

Vmail opens and does nothing #117

Open leafduo opened 11 years ago

leafduo commented 11 years ago

I'm a new user of Vmail, but after installing and opening Vmail, I got nothing. Like the screenshot. Screen Shot 2012-12-17 at 11 36 53 AM

danchoi commented 11 years ago

There should be a vmail.log file in ~/.vmail/default. Can you paste that here?

leafduo commented 11 years ago
# Logfile created on 2012-12-17 22:17:18 +0800 by logger.rb/31641
D, [2012-12-17T22:17:21.176440 #49818] DEBUG -- : [INBOX POLLER]: RUBY0001 OK leafduo@gmail.com Zuyang Kou authenticated (Success)

D, [2012-12-17T22:17:21.176555 #49818] DEBUG -- : [INBOX POLLER]: loading mailboxes...
D, [2012-12-17T22:17:21.803424 #49818] DEBUG -- : [INBOX POLLER]: Loaded mailboxes: ["INBOX", "358509641@qq.com", "Apple Mail To Do", "BHOSS", "Buaascyx@126.com", "Colenity", "Deleted Messages", "Drafts", "ECUG", "GC", "GCAC", "MSTC", "News", "Notes", "OI", "Project", "SMS", "Sent Messages", "TODO:", "Top Language", "[Gmail]/All Mail", "[Gmail]/Chats", "[Gmail]/Drafts", "[Gmail]/Important", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash", "android-c2dm", "beihangsixiuke@yahoo.cn", "bhsxjs@sina.com", "blog comments", "buaaoj", "buaasoft2009@gmail.com", "byteshell", "curl-library", "datebase", "emacs-orgmode.gnu.org", "feathers", "freebsd-current", "freebsd-questions", "freebsd-stable", "g-camp", "gentoo-cn", "golang-china", "golang-nuts", "help-gnu-emacs.gnu.org", "ideas", "jidao3921public@gmail.com", "kdx-server-issue", "kindlebookcrossing", "koudaixiang", "kouzuyang@buaa.mstechclub.cn", "linode-login", "linux-btrfs", "list:LKML", "list:python-cn", "mongodb-user", "mosh-devel", "old address", "orz-dream", "pinboard-dev", "python-tornado", "typecho", "ubuntu-zh", "ujuhui", "zao", "&U1d03Hau-"]
D, [2012-12-17T22:17:21.803677 #49818] DEBUG -- : [INBOX POLLER]: Setting aliases to {"sent"=>"[Gmail]/Sent Mail", "all"=>"[Gmail]/All Mail", "starred"=>"[Gmail]/Starred", "important"=>"[Gmail]/Important", "drafts"=>"[Gmail]/Drafts", "spam"=>"[Gmail]/Spam", "trash"=>"[Gmail]/Trash"}
D, [2012-12-17T22:17:21.821242 #49818] DEBUG -- : [INBOX POLLER]: Using notify tool: /usr/local/bin/growlnotify
D, [2012-12-17T22:17:23.551893 #49818] DEBUG -- : RUBY0001 OK leafduo@gmail.com Zuyang Kou authenticated (Success)

D, [2012-12-17T22:17:23.552017 #49818] DEBUG -- : loading mailboxes...
D, [2012-12-17T22:17:24.170060 #49818] DEBUG -- : Loaded mailboxes: ["INBOX", "358509641@qq.com", "Apple Mail To Do", "BHOSS", "Buaascyx@126.com", "Colenity", "Deleted Messages", "Drafts", "ECUG", "GC", "GCAC", "MSTC", "News", "Notes", "OI", "Project", "SMS", "Sent Messages", "TODO:", "Top Language", "[Gmail]/All Mail", "[Gmail]/Chats", "[Gmail]/Drafts", "[Gmail]/Important", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash", "android-c2dm", "beihangsixiuke@yahoo.cn", "bhsxjs@sina.com", "blog comments", "buaaoj", "buaasoft2009@gmail.com", "byteshell", "curl-library", "datebase", "emacs-orgmode.gnu.org", "feathers", "freebsd-current", "freebsd-questions", "freebsd-stable", "g-camp", "gentoo-cn", "golang-china", "golang-nuts", "help-gnu-emacs.gnu.org", "ideas", "jidao3921public@gmail.com", "kdx-server-issue", "kindlebookcrossing", "koudaixiang", "kouzuyang@buaa.mstechclub.cn", "linode-login", "linux-btrfs", "list:LKML", "list:python-cn", "mongodb-user", "mosh-devel", "old address", "orz-dream", "pinboard-dev", "python-tornado", "typecho", "ubuntu-zh", "ujuhui", "zao", "&U1d03Hau-"]
D, [2012-12-17T22:17:24.170295 #49818] DEBUG -- : Setting aliases to {"sent"=>"[Gmail]/Sent Mail", "all"=>"[Gmail]/All Mail", "starred"=>"[Gmail]/Starred", "important"=>"[Gmail]/Important", "drafts"=>"[Gmail]/Drafts", "spam"=>"[Gmail]/Spam", "trash"=>"[Gmail]/Trash"}
D, [2012-12-17T22:17:24.896339 #49818] DEBUG -- : Selecting mailbox "INBOX"
D, [2012-12-17T22:17:25.653407 #49818] DEBUG -- : RUBY0003 OK [READ-WRITE] INBOX selected. (Success)

D, [2012-12-17T22:17:25.653570 #49818] DEBUG -- : Done
D, [2012-12-17T22:17:25.658498 #49818] DEBUG -- : Getting mailbox status
D, [2012-12-17T22:17:25.658627 #49818] DEBUG -- : Getting highest message id
D, [2012-12-17T22:17:26.319813 #49818] DEBUG -- : Highest seqno: 2
D, [2012-12-17T22:17:51.821838 #49818] DEBUG -- : [INBOX POLLER]: INBOX POLLER: started polling
D, [2012-12-17T22:17:51.822131 #49818] DEBUG -- : [INBOX POLLER]: Selecting mailbox "INBOX"
D, [2012-12-17T22:17:52.850357 #49818] DEBUG -- : [INBOX POLLER]: RUBY0003 OK [READ-WRITE] INBOX selected. (Success)

D, [2012-12-17T22:17:52.850535 #49818] DEBUG -- : [INBOX POLLER]: Done
D, [2012-12-17T22:17:52.851573 #49818] DEBUG -- : [INBOX POLLER]: Getting mailbox status
D, [2012-12-17T22:17:52.851673 #49818] DEBUG -- : [INBOX POLLER]: Getting highest message id
D, [2012-12-17T22:17:53.434538 #49818] DEBUG -- : [INBOX POLLER]: Highest seqno: 2
D, [2012-12-17T22:17:53.434647 #49818] DEBUG -- : [INBOX POLLER]: #search: "ALL"
D, [2012-12-17T22:17:53.434797 #49818] DEBUG -- : [INBOX POLLER]: Query: "1:2 all"
D, [2012-12-17T22:17:53.965384 #49818] DEBUG -- : [INBOX POLLER]: - Query got 2 results; max seqno: 2
D, [2012-12-17T22:17:53.965500 #49818] DEBUG -- : [INBOX POLLER]: Clearing cached message
D, [2012-12-17T22:17:53.965569 #49818] DEBUG -- : [INBOX POLLER]: Fetching headers for 2 messages
D, [2012-12-17T22:17:54.671129 #49818] DEBUG -- : [INBOX POLLER]: INBOX POLLER: checking inbox
D, [2012-12-17T22:17:54.671240 #49818] DEBUG -- : [INBOX POLLER]: Checking for new messages
D, [2012-12-17T22:17:54.671302 #49818] DEBUG -- : [INBOX POLLER]: Selecting mailbox "INBOX"
D, [2012-12-17T22:17:55.202154 #49818] DEBUG -- : [INBOX POLLER]: RUBY0007 OK [READ-WRITE] INBOX selected. (Success)

D, [2012-12-17T22:17:55.202306 #49818] DEBUG -- : [INBOX POLLER]: Done
D, [2012-12-17T22:17:55.202966 #49818] DEBUG -- : [INBOX POLLER]: Getting mailbox status
D, [2012-12-17T22:17:55.203052 #49818] DEBUG -- : [INBOX POLLER]: Getting highest message id
D, [2012-12-17T22:17:55.725216 #49818] DEBUG -- : [INBOX POLLER]: Highest seqno: 2
D, [2012-12-17T22:17:55.725401 #49818] DEBUG -- : [INBOX POLLER]: Search #update_query
D, [2012-12-17T22:17:56.595266 #49818] DEBUG -- : [INBOX POLLER]: - got seqnos: [2]
D, [2012-12-17T22:17:56.595377 #49818] DEBUG -- : [INBOX POLLER]: - getting seqnos > 2
D, [2012-12-17T22:17:56.595432 #49818] DEBUG -- : [INBOX POLLER]: - setting max_seqno to 2
D, [2012-12-17T22:17:56.595479 #49818] DEBUG -- : [INBOX POLLER]: - new uids found: []
D, [2012-12-17T22:18:26.595746 #49818] DEBUG -- : [INBOX POLLER]: INBOX POLLER: checking inbox
D, [2012-12-17T22:18:26.595895 #49818] DEBUG -- : [INBOX POLLER]: Checking for new messages
D, [2012-12-17T22:18:26.596009 #49818] DEBUG -- : [INBOX POLLER]: Selecting mailbox "INBOX"
D, [2012-12-17T22:18:33.501985 #49818] DEBUG -- : [INBOX POLLER]: RUBY0010 OK [READ-WRITE] INBOX selected. (Success)

D, [2012-12-17T22:18:33.502175 #49818] DEBUG -- : [INBOX POLLER]: Done
D, [2012-12-17T22:18:33.502917 #49818] DEBUG -- : [INBOX POLLER]: Getting mailbox status
D, [2012-12-17T22:18:33.503008 #49818] DEBUG -- : [INBOX POLLER]: Getting highest message id
D, [2012-12-17T22:18:34.196469 #49818] DEBUG -- : [INBOX POLLER]: Highest seqno: 2
D, [2012-12-17T22:18:34.196708 #49818] DEBUG -- : [INBOX POLLER]: Search #update_query
D, [2012-12-17T22:18:34.861869 #49818] DEBUG -- : [INBOX POLLER]: - got seqnos: [2]
D, [2012-12-17T22:18:34.861974 #49818] DEBUG -- : [INBOX POLLER]: - getting seqnos > 2
D, [2012-12-17T22:18:34.862033 #49818] DEBUG -- : [INBOX POLLER]: - setting max_seqno to 2
D, [2012-12-17T22:18:34.862079 #49818] DEBUG -- : [INBOX POLLER]: - new uids found: []
D, [2012-12-17T22:18:58.452897 #49818] DEBUG -- : Closing connection
danchoi commented 11 years ago

Do you have any items in your INBOX? Maybe one or two?

colinsullivan commented 11 years ago

This happens to me as well. If I let it sit there for a while, it finally loads.

Here is my vmail.log file from the time I start vmail until it haults at that screen. My mailbox names are not really "...", but there are a lot of them.

D, [2012-12-30T09:49:35.207910 #32453] DEBUG -- : [INBOX POLLER]: RUBY0001 OK colinsul@gmail.com Colin Sullivan authenticated (Success)

D, [2012-12-30T09:49:35.208140 #32453] DEBUG -- : [INBOX POLLER]: loading mailboxes...
D, [2012-12-30T09:49:35.576707 #32453] DEBUG -- : [INBOX POLLER]: Loaded mailboxes: ["INBOX", "...", "...", "...", "...", "...", "...", "...", "...", "...", "...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "...", "RPI/...", "RPI/.../...", "RPI/...", "RPI/...", "RPI/...", "...", "...", "...", "...", "...", "...", ".../...", "[Gmail]/All Mail", "[Gmail]/Drafts", "[Gmail]/Important", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash", "lists", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "..."]
D, [2012-12-30T09:49:35.577068 #32453] DEBUG -- : [INBOX POLLER]: Setting aliases to {"sent"=>"[Gmail]/Sent Mail", "all"=>"[Gmail]/All Mail", "starred"=>"[Gmail]/Starred", "important"=>"[Gmail]/Important", "drafts"=>"[Gmail]/Drafts", "spam"=>"[Gmail]/Spam", "trash"=>"[Gmail]/Trash"}
D, [2012-12-30T09:49:35.585791 #32453] DEBUG -- : [INBOX POLLER]: Using notify tool: /usr/local/bin/growlnotify
D, [2012-12-30T09:49:36.358123 #32453] DEBUG -- : RUBY0001 OK colinsul@gmail.com Colin Sullivan authenticated (Success)

D, [2012-12-30T09:49:36.358357 #32453] DEBUG -- : loading mailboxes...
D, [2012-12-30T09:49:36.612486 #32453] DEBUG -- : Loaded mailboxes: ["INBOX", "...", "...", "...", "...", "...", "...", "...", "...", "...", "...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "Old/...", "...", "RPI/...", "RPI/.../...", "RPI/...", "RPI/...", "RPI/...", "...", "...", "...", "...", "...", "...", ".../...", "[Gmail]/All Mail", "[Gmail]/Drafts", "[Gmail]/Important", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash", "lists", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "lists/...", "..."]
D, [2012-12-30T09:49:36.612746 #32453] DEBUG -- : Setting aliases to {"sent"=>"[Gmail]/Sent Mail", "all"=>"[Gmail]/All Mail", "starred"=>"[Gmail]/Starred", "important"=>"[Gmail]/Important", "drafts"=>"[Gmail]/Drafts", "spam"=>"[Gmail]/Spam", "trash"=>"[Gmail]/Trash"}
D, [2012-12-30T09:49:36.615592 #32453] DEBUG -- : Selecting mailbox "INBOX"
D, [2012-12-30T09:49:36.972877 #32453] DEBUG -- : RUBY0003 OK [READ-WRITE] INBOX selected. (Success)

D, [2012-12-30T09:49:36.973253 #32453] DEBUG -- : Done
D, [2012-12-30T09:49:36.974360 #32453] DEBUG -- : Getting mailbox status
D, [2012-12-30T09:49:36.974450 #32453] DEBUG -- : Getting highest message id
D, [2012-12-30T09:49:37.221699 #32453] DEBUG -- : Highest seqno: 194
danchoi commented 11 years ago

Hmm. Is there anything usual about your labels? In a foreign language, or Google Plus, or something along those lines?

colinsullivan commented 11 years ago

No there is nothing special about them. I can email them to you if you'd like.


Colin

On Thu, Jan 3, 2013 at 5:43 AM, Daniel Choi notifications@github.comwrote:

Hmm. Is there anything usual about your labels? In a foreign language, or Google Plus, or something along those lines?

— Reply to this email directly or view it on GitHubhttps://github.com/danchoi/vmail/issues/117#issuecomment-11843887.

colinsullivan commented 11 years ago

They all have a lot of emails in them.


Colin

On Sun, Jan 6, 2013 at 8:25 PM, Colin Sullivan colinsul@gmail.com wrote:

No there is nothing special about them. I can email them to you if you'd like.


Colin

On Thu, Jan 3, 2013 at 5:43 AM, Daniel Choi notifications@github.comwrote:

Hmm. Is there anything usual about your labels? In a foreign language, or Google Plus, or something along those lines?

— Reply to this email directly or view it on GitHubhttps://github.com/danchoi/vmail/issues/117#issuecomment-11843887.

dmcdougall commented 11 years ago

I get similar behaviour with vmail 2.8.1 on OS X 10.8. I have one unread email in my inbox, I open vmail and I'm presented with "Please wait while I fetch your messages" and nothing ever happens. Here's the log:

# Logfile created on 2013-01-27 20:37:08 -0600 by logger.rb/31641
D, [2013-01-27T20:37:08.508089 #72573] DEBUG -- : RUBY0001 OK MY_EMAIL_ADDRESS MY_NAME authenticated (Success)

D, [2013-01-27T20:37:08.508197 #72573] DEBUG -- : loading mailboxes...
D, [2013-01-27T20:37:08.593563 #72573] DEBUG -- : Loaded mailboxes: ["INBOX", "[Gmail]/All Mail", "[Gmail]/Drafts", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash"]
D, [2013-01-27T20:37:08.593695 #72573] DEBUG -- : Setting aliases to {"sent"=>"[Gmail]/Sent Mail", "all"=>"[Gmail]/All Mail", "starred"=>"[Gmail]/Starred", "drafts"=>"[Gmail]/Drafts", "spam"=>"[Gmail]/Spam", "trash"=>"[Gmail]/Trash"}
D, [2013-01-27T20:37:08.935412 #72573] DEBUG -- : Selecting mailbox "INBOX"
D, [2013-01-27T20:37:09.028663 #72573] DEBUG -- : RUBY0003 OK [READ-WRITE] INBOX selected. (Success)

D, [2013-01-27T20:37:09.028889 #72573] DEBUG -- : Done
D, [2013-01-27T20:37:09.029402 #72573] DEBUG -- : Getting mailbox status
D, [2013-01-27T20:37:09.029450 #72573] DEBUG -- : Getting highest message id
D, [2013-01-27T20:37:09.107544 #72573] DEBUG -- : Highest seqno: 5

I have other gmail labels, but I'd rather not share them. None of them have any special characters except _ and -.

Edit: I even nuked my .vimrc and I get the same behaviour.

danchoi commented 11 years ago

Sorry for the delay but I will try to investigate this weekend.

LnL7 commented 11 years ago

I have a similar issue, however Vmail does eventually load. It just takes a long time.

danchoi commented 11 years ago

Do you have a large INBOX? Vmail does take a long time to load when that's the case.

On Sun, Apr 14, 2013 at 10:16 AM, Daiderd Jordan notifications@github.comwrote:

I have a similar issue, however Vmail does eventually load. It just takes a long time.

— Reply to this email directly or view it on GitHubhttps://github.com/danchoi/vmail/issues/117#issuecomment-16351710 .

LnL7 commented 11 years ago

@danchoi No I only have a few emails in my inbox, however I noticed that Ruby only uses the network when something happens on the screen, not while it's stuck.

https://gist.github.com/LnL7/7f9e12d49e835a7557c4

danchoi commented 11 years ago

Does the problem go away if you have more than 5 emails in your inbox?

dmcdougall commented 11 years ago

Not for me. I decided to open vmail and just leave it in the background to see what happens. After getting the current_message.txt screen, I waited a while (probably about 3 or 4 minutes) and got the message saying, "Please wait while vmail fetches your messages." I have about ten or so emails in my inbox. I waited for a while again, probably another 3 or 4 minutes and got the following errors:

/opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:736:in `rescue in block in open': druby://quagmire.gateway.2wire.net:56532 - #<Errno::ETIMEDOUT: Operation timed out - connect(2)> (DRb::DRbConnError)
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:730:in `block in open'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:729:in `each'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:729:in `open'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:1191:in `initialize'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:1171:in `new'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:1171:in `open'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:1087:in `block in method_missing'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:1105:in `with_friend'
    from /opt/local/lib/ruby1.9/1.9.1/drb/drb.rb:1086:in `method_missing'
    from /opt/local/lib/ruby1.9/gems/1.9.1/gems/vmail-2.8.1/bin/vmail_client:11:in `<top (required)>'
    from /opt/local/bin/vmail_client:23:in `load'
    from /opt/local/bin/vmail_client:23:in `<main>'
danchoi commented 11 years ago

It looks like a firewall is getting in the way. Try adding this line to your .vmailrc

drb_uri: druby://localhost:8787

The port number 8787 is arbitrary, but it should be a port accessible from your machine

dmcdougall commented 11 years ago

Oh, awesome. That worked for me! If a firewall was preventing the connection, how did ruby get around it with this line? (Sorry, I'm completely ruby inept.)

If other users are having this problem, this would be a great addition to the FAQ.