This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

MIME E-mail forwarding script for Slack written in Python

Project Description

MIME E-mail forwarding script for Slack written in Python.

I tested on Python 3.5 and Postfix only. Please report test report and sample configuration on other MTAs.

Demo

Slack

Requirements

Getting Started

Install email2slack

From PyPI

# Install email2slack
pip3 install email2slack

# Fetch configuration file from GitHub
cd /usr/local/etc/
curl -O https://raw.githubusercontent.com/mikoim/email2slack/master/email2slack

# Before using, You must edit config file
vim /usr/local/etc/email2slack

In this case, setuptools create script to call email2slack and place it in bin directory automatically. So you should use the script in Setup MTA section.

From GitHub repository

git clone https://github.com/mikoim/email2slack.git
cd email2slack

# Install dependencies
pip3 install -r requirements.txt

# Install email2slack
cp email2slack.py /usr/local/bin/email2slack.py && chmod +x /usr/local/bin/email2slack.py
cp email2slack /usr/local/etc/

# Before using, You must edit config file
vim /usr/local/etc/email2slack

Setup MTA

Postfix

vim /etc/postfix/aliases

...

# notice only, not forward
user: |/usr/local/bin/email2slack.py

# notice and forward e-mail to another user
user: anotheruser, |/usr/local/bin/email2slack.py

# notice and leave e-mail on same user
user: \user, |/usr/local/bin/email2slack.py

...

newaliases
Release History

Release History

This version
History Node

1.0.0a3

History Node

1.0.0a2

History Node

1.0.0a1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
email2slack-1.0.0a3.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Nov 12, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting