Mail Relayer
This project is an attempt to simplify relaying incoming emails, e.g. to ActionMailbox.
Usage
gem install mail-relayerThen pipe the email content from
STDINtomail-relayerexecutable. You need to specify the target URL and password (HTTP Basic Auth) either via command line arguments or via environment variables.Profit
Configuration
- target URL:
--urlorMAIL_RELAYER_URL - ingress username:
--ingress-usernameorMAIL_RELAYER_INGRESS_USERNAME(optional, default:mail_relayer) - ingress password:
--ingress-passwordorMAIL_RELAYER_INGRESS_PASSWORD
Development
- Install ruby - see
.ruby-version - Install bundler -
gem install bundler - Install dependencies -
bundle install
Tests
rake testruns all MiniTest tests in/testrubocoprun static code checks
Build / Release
- Update version number in
VERSIONif required. gem build mail-relayer.gemspecgem install ./mail-relayer-<VERSION>.gemto install locally