To post a variety of services by analyzing the email
- slack notification
- create issue to github.com or ghe
- exec arbitrary commands
$ gem install popper
# create /etc/popper.conf
$ popper init
# edit popper.conf
$ vi /etc/popper.conf
# print config
$ popper print
$ popper --daemon --config /etc/popper.conf --log /var/log/popper.log --pidfile /var/run/popper/popper.pid
systmd service config: https://github.com/pyama86/popper/tree/master/init_script/cent7/etc/systemd/system/popper.service
include = ["/etc/popper/*.conf"]
interval = 60 # fetch interbal default:60
[default.condition]
subject = ["^(?!.*Re:).+$"]
[default.action.slack]
webhook_url = "webhook_url"
user = "slack"
channel = "#default_channel"
message = "default message"
# <user_name>.login
[example.login]
server = "example.com"
user = "[email protected]"
password = "password"
port = 110(default)
ssl = false
delete_after = false
# <user_name>.default.condition
[example.default.condition]
subject = [".*default.*"]
# <user_name>.default.action.<action_name>
[example.default.action.slack]
channel = "#account default"
# <user_name>.rules.<rule_name>.condition
[example.rules.normal_log.condition]
subject = [".*Webmailer Exception.*"]
# <user_name>.rules.<rule_name>.action.<action_name>
[example.rules.normal_log.action.slack]
channel = "#channel"
mentions = ["@user"]
message = "webmailer error mail"
[example.rules.normal_log.action.git]
repo = "example/fuu"
labels = "label1,label2"
[example.rules.normal_log.action.exec_cmd]
cmd = "/path/to/other_command.rb"
[example2.login]
user = "[email protected]"
...
-c, [--config=CONFIG]
-l, [--log=LOG]
-d, [--daemon], [--no-daemon]
-p, [--pidfile=PIDFILE]
- pyama