Skip to content

Back up your IMAP-enabled mail account to a local directory.

License

Notifications You must be signed in to change notification settings

mattalxndr/mailpuller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mailpuller

Back up your IMAP-enabled mail account to a local directory.

Docker Automated build

Usage

First, create a local directory for your mail.

MAILDUMP=$HOME/backups/mail
mkdir -p $MAILDUMP

Then run mailpuller in Docker to start downloading it.

docker run \
  -e IMAP_SERVER=imap.gmail.com \
  -e IMAP_PORT=993 \
  -e [email protected] \
  -e IMAP_PASSWORD=$(echo ~/pws/mail) \
  --hostname mailpuller \
  --mount type=bind,src=${MAILDUMP},target=/mail \
  mattalxndr/mailpuller

IMPORTANT: The hostname is used to check the uniqueness of an email, so it is important that you set it the same every time. This applies to docker run or docker compose.

Test

A test script is provided. Add IMAP connection details to the top, and execute:

vim test.sh
./test.sh

About

Back up your IMAP-enabled mail account to a local directory.

Topics

Resources

License

Stars

Watchers

Forks