Mail Relayer
This project is an attempt to simplify relaying incoming emails, e.g. to ActionMailbox.
Usage
gem install mail-relayer
Then pipe the email content from
STDIN
tomail-relayer
executable. 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:
--url
orMAIL_RELAYER_URL
- ingress username:
--ingress-username
orMAIL_RELAYER_INGRESS_USERNAME
(optional, default:mail_relayer
) - ingress password:
--ingress-password
orMAIL_RELAYER_INGRESS_PASSWORD
Development
- Install ruby - see
.ruby-version
- Install bundler -
gem install bundler
- Install dependencies -
bundle install
Tests
rake test
runs all MiniTest tests in/test
rubocop
run static code checks
Build / Release
- Update version number in
VERSION
if required. gem build mail-relayer.gemspec
gem install ./mail-relayer-<VERSION>.gem
to install locally