Acknowledgments: https://github.com/newroco/mail2deck
This script allows fetching emails from a mail client and save them as cards in Nextcloud Deck App, eventually assigning the card to the proper users
clone the repository
git clone https://gitlab.com/christiansicari/nextcloud-mail2deck.git
move to master branch
git checkout master
install all python dependencies
pip3 install -r requirements.txt
move config.json.sample to config.json and edit with your parameters
cp config.json.sample config.json
run this script in cron
crontab -e
add this line
*/5 * * * * /usr/bin/python3 /path/to/repo/main.py
Pull the image from the Docker Hub
docker image pull christiansicari/nextcloud-mail2deck:latest
edit the config.json.sample you find in this repository
Run the docker image mapping the config.json as volume
docker run -d --name nc-mail2deck -v $PWD/config.json:/app/config.json christiansicari/nextcloud-mail2deck:latest
edit cron
crontab -e
add this line
*/5 * * * * /usr/bin/docker start nc-mail2deck
You can specify board and/or stack in the mail subject, using this model:
b-'theboardname's-'thestackname'Card description
Just put the assignee mail (that must be registered in Nextcloud) in the TO mail. The mail in the config file will be automatic excluded
The script will be not able to assign the card to any user if the bot user in the config is not admin or sub-admin. If you use LDAP, you need to set the mail field as a searchable field ettings -> LDAP Integration -> Advanced -> Directory Settings ->User Search Attributes
Provide board and card in subject
Provide only the board
Provide only the stack
Content type
Image
Digest
Size
336.2 MB
Last updated
about 5 years ago
docker pull christiansicari/nextcloud-mail2deck