This is a simple bot that reads incoming emails in mailbox with imap and sends a notification to a Mattermost Webhook.
- Python ^3.8
- Mattermost instance (obviously!)
- Install dependencies:
pip install --user -r requirements.txt
- Copy paste
.env.dist
file to.env
- Set your own imap and mattermost parameters
- Optional parameters :
MAIL_LIMIT
(int=10): To set the limit of number of emails to be polled at onceDEBUG
(bool=False): If set toTrue
, does not send messages on webhook
Just run the command
python main.py