- monitor gmail new email arrive and retrieve message information
- trigger sidekiq worker in rails application for further processing
- System dependencies
- sidekiq
- redis
- Configuration
- in
imap_idle.rb
, changeUSERNAME
andPW
- in
mail_retrieve_worker.rb
, changeGMAIL_USERNAME
andGMAIL_PW
- Usage
run in development env,
RAILS_ENV=development ruby imap_idle.rb