Pre-release
This release is a pre-release and may not be stable for production use.
email2slack
MIME E-mail forwarding script for Slack written in Python.
I tested on Python 3.x and Postfix only. Please report test result and sample configuration on other MTAs.
Demo
Slack
Requirements
Python 3.x (Not tested on Python 2.x)
chardet : https://github.com/chardet/chardet
requests : https://github.com/kennethreitz/requests
Getting Started
Install 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.
Install 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 files for email2slack 1.0.0a2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| email2slack-1.0.0a2.tar.gz | 4.1 kB | Details |
Release files / email2slack-1.0.0a2.tar.gz
| Download URL | email2slack-1.0.0a2.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
542ae0873c89811ae2e9d98090ae397e02fccf2fb7c5c01229f297154bb8a39b
|
|
BLAKE2b-256 checksum How to use checksums |
9a36afcd1a11097135175d85c667bee86cac1360bc5e19e9e9129258eace4892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |