-
-
Save cubiic/15a72402911368920903 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'gmail' | |
gmail = Gmail.new(username, password) | |
while true | |
inbox = gmail.inbox.emails(:unread, :on => Date.today) | |
inbox.each do |email| | |
puts email.subject | |
end | |
sleep PERIOD | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment