NAME
imapsync – IMAP synchronisation, sync, copy or migration tool. Synchronise mailboxes between two imap servers. Good at IMAP migration. More than 36 different IMAP server softwares supported with success.
SYNOPSIS
To synchronise imap account “foo” on “imap.truc.org” to imap account “bar” on “imap.trac.org” with foo password “secret1″ and bar password “secret2″:

imapsync --host1 imap.truc.org --user1 foo --password1 secret1 --host2 imap.trac.org --user2 bar --password2 secret2

EXAMPLE

imapsync --host1 ip --authmech1 login --user1 info@domain.com --password1 userpassword --host2 localhost --authmech2 login --user2 info@domain.com --authuser2 admin --password2 adminpassword
imapsync --host1 ip --authmech1 login --user1 info@domain.com --password1 userpassword --host2 localhost --authmech2 login --user2 info@domain.com --password2 userpassword

where authmech1 and authmech2 accept the values: login, plain, cram-md5, md5, sasl, …