Aplicacion que monitorea una inbox de outlook/hotmail a traves de IMAP y cuando detecta un email con cierto subject y viniendo de una coleccion de direcciones de email conocidas, ejecuta una accion, por ejemplo: encender el server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
rodley82 9ba310aeb4 Added new column action, sender list is read from env var 4 years ago
app Added new column action, sender list is read from env var 4 years ago
bin Initial commit from rails new 4 years ago
config Initial commit from rails new 4 years ago
db Added new column action, sender list is read from env var 4 years ago
lib Improved fully working version 4 years ago
log Initial commit from rails new 4 years ago
public Initial commit from rails new 4 years ago
spec/interactors Removed some unused gem dependencies as this will not be serving web content at all 4 years ago
storage Initial commit from rails new 4 years ago
test Improved fully working version 4 years ago
tmp Initial commit from rails new 4 years ago
vendor Initial commit from rails new 4 years ago
.gitattributes Initial commit from rails new 4 years ago
.gitignore Initial commit from rails new 4 years ago
.ruby-version Initial commit from rails new 4 years ago
Gemfile Removed some unused gem dependencies as this will not be serving web content at all 4 years ago
Gemfile.lock Removed some unused gem dependencies as this will not be serving web content at all 4 years ago
README.md Added new column action, sender list is read from env var 4 years ago
Rakefile Initial commit from rails new 4 years ago
config.ru Initial commit from rails new 4 years ago

README.md

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

How to test

From the console

COMMAND="echo ejecutada" AUTHORIZED_SENDERS="sender1@email.com,sender2@email.com" EMAIL=email@outlook.com PASSWORD=micontrasenia bundle exec rake monitor:run

From the Rails console

email = "email@outlook.com"
password = "micontrasenia"
res = FetchEmails.call(email: email, password: password, query_from: Time.now - 30.days)

res = MonitorInbox.call!