Skip to content

Instantly share code, notes, and snippets.

@javierav javierav/sync.sh
Created Nov 22, 2017

Embed
What would you like to do?
IMAP email migrating with Docker and ImapSync
#!/usr/bin/env bash
EMAIL="john.doe@example.org"
FROM_PASSWD="foobarfoo"
TO_PASSWD="foobarbaz"
DOCKER_IMAGE_NAME="${EMAIL/@/-}"
DOCKER_CONTAINER=$(docker run -d --name "$DOCKER_IMAGE_NAME" gilleslamiral/imapsync imapsync \
--host1 X.X.X.X --user1 "$EMAIL" --password1 "$FROM_PASSWD" \
--host2 X.X.X.X --user2 "$EMAIL" --password2 "$TO_PASSWD")
exec docker logs -f $DOCKER_CONTAINER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.