mail_daemon
TODO: Write a gem description
Installation
Add this line to your application's Gemfile:
gem 'mail_daemon'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mail_daemon
Design
Gems
- mail_room - retrieves mail from multiple mailboxes at once and sends them through sidekiq or an http postback
- mail - mail parsing and sending gem
- talon - python code to extract the relevant body of the message
Notes
- config for office365 smtp needs authentication type 'login' gmail is 'plain'
- gmail apps authentication is by ip address only, suggest a feature of being able to host the send daemon on another box
Usage
Ensure the following environment variables are set:
REDIS_URL=redis://localhost:6379
CB_API_ENDPOINT=https://login.caseblocks.com
CB_API_TOKEN=...
And run the daemon from the CLI
mail_daemon
Contributing
- Fork it ( https://github.com/[my-github-username]/mail_daemon/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request