Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nico01f committed Nov 17, 2015
1 parent cdeeeed commit cbff812
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
source 'https://rubygems.org'

#Interface to Gmail, connect using IMAP
#https://github.com/dcparker/ruby-gmail
gem 'gmail'
gem 'gmail_xoauth'
3 changes: 0 additions & 3 deletions checkEmail.rb

This file was deleted.

15 changes: 15 additions & 0 deletions gmail.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
require 'gmail'

email, pass = ARGV #Argumentos recibidos de main.rb

#Conecta con Gmail
g = Gmail.connect(email, pass)
if g.logged_in? == 'True'
puts "Estas conectado."
else
puts "No estas conectado"
end


end

0 comments on commit cbff812

Please sign in to comment.