This will move messages from one IMAP system to another
Usage:
php ./imap-move.php
--source
--target
[ [ --wipe | --sync ] | --fake | --once ]
--fake to just list what would be copied
--wipe to remove messages after they are copied
--once to only copy one message then exit
--sync to sync source and target
URI = (imap-ssl | imap-tls)://user:[email protected]:993/[ folder ]
(file: | file://<FULLPATH>)filename.db3
Note that password is base64 encoded
Included is a shell wrapper to make life a bit easier, see imap-move.sh