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.
 
 
 
 

720 B

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

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!(email: email,password: password)