https://github.com/z3rone/email-attachment-downloader
https://github.com/z3rone/email-attachment-downloader
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/z3rone/email-attachment-downloader
- Owner: z3rone
- Created: 2022-05-26T12:13:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-26T14:37:47.000Z (about 3 years ago)
- Last Synced: 2025-02-03T23:31:25.668Z (4 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
This docker container lets you download email attachments on a schedule.This project ist based on the following packages:
* https://github.com/kelektiv/node-cron
* https://github.com/eHealthAfrica/download-email-attachments# Usage
```docker run -it -e EMAIL_CONNECTION=$EMAIL_CONNECTION -v /path/on/host:/app/downloads z3rone/email-attachment-downloader:0.5```This command downloads the e-mail attachments from the account defined by `$EMAIL_CONNECTION` do the directory `/path/on/host`.
## Environment Variables
* `EMAIL_CONNECTION` - Defines the IMAP connection and login. For syntax see https://github.com/eHealthAfrica/download-email-attachments
* `CRON_SCHEDULE` - Defines the cron scheduling. Example: `*/5 * * * *` for every 5mins.
* `TIME_ZONE` - Defines the time zone for the cron package.
* `FILENAME_PATTERN` - Defines the file name pattern of the downloaded attachments. For syntax see https://github.com/eHealthAfrica/download-email-attachments