Closed nimdraugsael closed 7 years ago
+1
I have a script that uses ruby-gmail that runs every month. Last month (Sept 2016) it worked, this month (Oct 2016), it spit out:
$HOME/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/net/imap.rb:1158:in `get_tagged_response':
Could not parse command (Net::IMAP::BadResponseError)
from $HOME/.rbenv/versions/2.0.0-p247/lib/ruby/2.0.0/net/imap.rb:1210:in
`block in send_command'
My script uses the before and after params to gmail.inbox.emails().each.
I applied the one character patch from @nimdraugsael and now the script works again!
Hey, any maintainers here? :)
@nimdraugsael The maintainer had passed away a few years ago...
Yesterday I started getting
Net::IMAP::BadResponseError: Could not parse command
when used before and after params for inbox.Date format in IMAP spec https://tools.ietf.org/html/rfc3501 page 83
So, it should be
in https://github.com/dcparker/ruby-gmail/blob/master/lib/gmail/mailbox.rb#L5