A tool for dumping emails to local in batch.
Command
./imapdump -conf config.yaml
Configuration
dir: dump
accounts:
# name, name of the subdirectory
- name: [email protected]
# host, host and port for IMAP server, must be TLS
host: imap.mydomain.com:993
# username, username of login
username: [email protected]
# password, password of login
password: xxxxxxxxxxxxxxxxxxx
# prefixes, mailbox name prefixes, if you are not sure of maibox names, you can check the log
prefixes:
- Archive # this will match 'Archive', 'Archives', 'Archived' and 'Archives/2022' etc
- 存档
Check GitHub Packages for available container images
Check Dockerfile for details
By default, container image will execute imapdump
every 6 hours
All you need to do is to mount /data
for data persistence, and put a config.yaml
at /data/config.yaml
Execution result will be delivered to environment variable $NOTIFY_URL
, if given, by HTTP POST
.
{"text": "MESSAGE..."}
https://git.guoyk.net/go-guoyk/imapdump
Due to various reasons, codebase is detached from upstream.
View https://guoyk.xyz/donation
Guo Y.K., MIT License