>> require ''net/imap''
>> imap = Net::IMAP.new(''imap.yandex.ru'', 993, true)
>> imap.login(''login'', ''password'')
>> imap.select(''INBOX'')
=> #<struct Net::IMAP::TaggedResponse tag="RUBY0010",
name="OK",
data=#<struct Net::IMAP::ResponseText code=#<struct
Net::IMAP::ResponseCode
name="READ-WRITE", data=nil>, text=" SELECT
completed">, raw_data="RUBY0010
OK [READ-WRITE] SELECT completed\r\n">>> imap.search([''ALL''])
NoMethodError: You have a nil object when you didn''t expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
This error throws only with yandex.ru IMAP server
How could Net::IMAP throws ActiveRecord::Base exception?
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/iWKZ5ggCGg0J.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.