danchoi / vmail

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

Net::IMAP::ResponseParseError: unknown token when reading inbox #53

Open cosgroveb opened 13 years ago

cosgroveb commented 13 years ago

I receive the following error in vmail after it has opened and after it tries to get my inbox:

'>Sorry there was an error. Please check vmail.log.

Here is vmail.log

D, [2011-08-04T10:24:04.209492 #5088] DEBUG -- : RUBY0001 OK [REDACTED] authenticated (Success) D, [2011-08-04T10:24:04.210019 #5088] DEBUG -- : loading mailboxes... D, [2011-08-04T10:24:04.356280 #5088] DEBUG -- : Loaded mailboxes: ["INBOX", "Deleted Messages", "Notes", "Other", ">[Gmail]/All Mail", "[Gmail]/Drafts", "[Gmail]/Important", "[Gmail]/Sent Mail", "[Gmail]/Spam", "[Gmail]/Starred", "[Gmail]/Trash"] D, [2011-08-04T10:24:04.356810 #5088] 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, [2011-08-04T10:24:04.358556 #5088] DEBUG -- : Selecting mailbox "INBOX" D, [2011-08-04T10:24:04.985442 #5088] DEBUG -- : RUBY0003 OK [READ-WRITE] INBOX selected. (Success) D, [2011-08-04T10:24:04.985992 #5088] DEBUG -- : Done D, [2011-08-04T10:24:04.986827 #5088] DEBUG -- : Getting mailbox status D, [2011-08-04T10:24:04.986915 #5088] DEBUG -- : Getting highest message id D, [2011-08-04T10:24:05.423300 #5088] DEBUG -- : Highest seqno: 26 D, [2011-08-04T10:24:05.673599 #5088] DEBUG -- : Setting window width to 157 D, [2011-08-04T10:24:05.842897 #5088] DEBUG -- : Selecting mailbox "INBOX" D, [2011-08-04T10:24:06.055125 #5088] DEBUG -- : RUBY0005 OK [READ-WRITE] INBOX selected. (Success) D, [2011-08-04T10:24:06.055903 #5088] DEBUG -- : Done D, [2011-08-04T10:24:06.058798 #5088] DEBUG -- : Getting mailbox status D, [2011-08-04T10:24:06.059055 #5088] DEBUG -- : Getting highest message id D, [2011-08-04T10:24:06.251252 #5088] DEBUG -- : Highest seqno: 26 D, [2011-08-04T10:24:06.481641 #5088] DEBUG -- : Query: "1:26 all" D, [2011-08-04T10:24:06.595712 #5088] DEBUG -- : - Query got 26 results; max seqno: 26 D, [2011-08-04T10:24:06.596083 #5088] DEBUG -- : Clearing cached message D, [2011-08-04T10:24:06.596222 #5088] DEBUG -- : Fetching headers for 26 messages D, [2011-08-04T10:24:07.189035 #5088] DEBUG -- : Error: unknown token - "\"Matthew" D, [2011-08-04T10:24:07.189386 #5088] DEBUG -- : ERROR:

<Net::IMAP::ResponseParseError: unknown token - "\"Matthew">

/home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:3235:in parse_error' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:3180:innext_token' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:3097:in lookahead' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2995:innstring' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2925:in address' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2897:inaddress_list' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2193:in envelope' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2170:inenvelope_data' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2145:in msg_att' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2125:innumeric_response' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2067:in response_untagged' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:2047:inresponse' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:1973:in parse' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:1124:inget_response' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:1036:in receive_responses' /home/cosgroveb/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/net/imap.rb:1023:inblock in initialize' D, [2011-08-04T10:24:48.340684 #5088] DEBUG -- : Closing connection

One final thing: I did a search for recent emails with "Matthew" in them and one conversation from this morning came up. I archived it, and got into vmail successfully. I can provide the e-mail headers or their contents entirely to the developer via some other channel.

danchoi commented 13 years ago

Yes, this please send me a copy of the raw payload (RFC822) of the email in question. You can email it to dhchoi@gmail.com. Thank you.

cosgroveb commented 13 years ago

Sent.

danchoi commented 13 years ago

OK I haven't solved this issue yet, but I looked at it and I can tell you it's an issue on the lower of level of Net::IMAP in the Ruby library. I'll try to take a look at this and see if we can contribute a patch to Ruby for it.