popper

Build Status Code Climate Test Coverage

To post a variety of services by analyzing the email

  • slack notification
  • create issue to github.com or ghe

install

$ gem install popper

usage

  # 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

configure(toml)

~/popper/popper.conf

[global]
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"

# [config_name].login
[example.login]

server = "example.com"
user = "[email protected]"
password = "password"
port = 110(default)

# [config_name].default.condition
[example.default.condition]
subject = [".*default.*"]

# [config_name].default.action.[action_name]
[example.default.action.slack]
channel = "#account default"

# [config_name].rules.[rule_name].condition
[example.rules.normal_log.condition]

subject = [".*Webmailer Exception.*"]

# [config_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"

[example2.login]
user = "[email protected]"
...

option

  -c, [--config=CONFIG]
  -l, [--log=LOG]
  -d, [--daemon], [--no-daemon]
  -p, [--pidfile=PIDFILE]

author

  • pyama