Skip to content

Scripts to summarize Slack chat history into an email digest.

License

Notifications You must be signed in to change notification settings

csaftoiu/slack-email-digest

Repository files navigation

slack-email-digest

Summarize Slack chat history into an email digest.

Local setup

Install Python 3 and then run:

venv ./myenv
./myenv/bin/python setup.py develop

Troubleshooting

  • If you receive SSL errors on OSX, try installing Python 3 from Homebrew.

Deploying to Heroku

Create the App

Create and deploy the app:

heroku create my-app-name
git push heroku master

Add-ons

Add the following add-ons:

  1. Postmark (note: doesn't support message threading)
  2. Heroku Scheduler
  3. Papertrail (optional)

Config Vars

Set the following config vars:

  1. [email protected]
  2. [email protected]
  3. SLACKEMAILDIGEST_TOKEN=slack-test-api-token (Test token)

Postmark Delivery

Set the following variable:

  1. SLACKEMAILDIGEST_DELIVERY=postmark

Note that messages sent via postmark won't be threaded properly.

SMTP Delivery

Set the following variables:

  1. SLACKEMAILDIGEST_SMTP_HOST=smtp.example.com
  2. SLACKEMAILDIGEST_SMTP_PORT=587
  3. SLACKEMAILDIGEST_SMTP_USER=example
  4. SLACKEMAILDIGEST_SMTP_PASSWORD=secret

Add-ons

Configure the necessary add-ons:

  1. Open the Heroku Scheduler add-on from your app dashboard and add a new job running scripts/slack-email-digest.sh daily.
  2. (postmark only) Open the Postmark add-on and create a "sender signature" matching the value of SLACKEMAILDIGEST_FROM

About

Scripts to summarize Slack chat history into an email digest.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages