You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EventMachine.run do
imap = EM::IMAP.new('imap.gmail.com', 993, true)
imap.connect.bind! do
imap.login('user@gmail.com', 'password')
end.bind! do
imap.select('INBOX')
end.bind! do
imap.uid_search("2:*")
end.bind! do |ids|
imap.fetch(ids, "(UID RFC822)")
end.callback do |raw_messages|
puts raw_messages
end.errback do |error|
puts "Connecting or logging in failed: #{error}"
end
end
I am trying to pull the latest emails from the server. I get the error:
Could not parse command
Any way around this?
The text was updated successfully, but these errors were encountered:
The uid_search method doesn't work:
I am trying to pull the latest emails from the server. I get the error:
Could not parse command
Any way around this?
The text was updated successfully, but these errors were encountered: