Trigger a webhook to push a message when a new email is available.
Create a docker-compose.yml file and replace the parameters inside. At the volumes section you can define where your files should be stored.
version: '3'
services:
imap2push:
image: icodr8/imap2push:latest
environment:
- IMAP_HOST=YOUR_EMAIL_HOST
- IMAP_USER=YOUR_EMAIL_USER_ACCOUNT
- IMAP_PASSWORD=XXXXXXXXXXXXXXXX
- IMAP_PORT=993
- IMAP_TLS=true
- DEBUG=true
- MAIL_STORAGE_PATH=/imap2push/data
- WEBHOOK_PATH=https://url
- EMAIL_FROM_REGEX=.*
- CONDITION_REGEX=.*
- SUBJECT_REGEX=^(.*)$
- SUBJECT_REGEX_REPLACE=$1
- SUBJECT_REGEX_FAILED_MESSAGE=Failed
- INTERVAL_TIME=10000
volumes:
- ./data:/imap2push/data:rw
After that you can run the container with docker-compose up -d command.
Content type
Image
Digest
Size
377.6 MB
Last updated
over 5 years ago
docker pull icodr8/imap2push