Introducing the Gmail_omah gem
require 'gmail_omah'
mail = {user_name: 'somebody@gmail.com', password: 'secretpassword'}
gomah = GmailOmah.new mail: mail
gomah.fetch_email
The above example demonstrates how I fetch the email from my email server. Gmail_omah does the following:
- connects to Gmail using the Gmail gem
- retrieves all messages from the inbox
- stores the messages in a file directory called email
- deletes all messages from the inbox
Resources
- ?gmail_omah https://rubygems.org/gems/gmail_omah?
- ?Omah 0.3.0 can now save message attachments http://www.jamesrobertson.eu/snippets/2015/may/22/omah-0-3-0-can-now-save-message-attachments.html?
email classicomah gem mail