PHP script to handle basic email IMAP migration from one account to another. If you need more sophisticated software, you can purchase imapsync.

Project available at: and github

Use example:

curl > imap-move.php

php ./imap-move.php \
    --source imap-ssl:// \
    --target imap-ssl://

Move from Gmail to Google Apps

This copies from a Gmail style account to a Google Apps hosted domain duplicating folder structure

php ./imap-move.php \
    -s imap-ssl:// \
    -t imap-ssl://

Would love your thoughts, please comment.x