Gmail API(via IMAP) In Ruby on Rails – A piece of cake

Originally posted on Curious Reflections:
We often need to read user email messages from Gmail, In this post I will be taking you through how to access user inbox messages from Gmail using gmail_xoauth gem and Ruby Net::IMAP Net library in your Rails application. I have the sample example file on gist , I would suggest refer this example…