Imapsync

From Kolab Wiki

Jump to: navigation, search

IMAPSync is a Perl script that can be run in order to synchronize Emails from one IMAP server to another in as many steps as you want. You can migrate account by account, or migrate many accounts simultaneously.

The tool supports most available IMAP servers

Check pages that link here or search for "imapsync" for the usage examples at other places in this wiki.


Links

Examples

Sync from Cyrus 2.0.16 to Kolab 2.2.0

From the mailing list:

imapsync --host1 CYRUSHOST --user1 USERNAME_OLD --passfile1 cyrus_password
 --host2 KOLABHOST --user2 USERNAME_NEW --passfile2 kolab_password
 --folderrec INBOX --regextrans2 's/INBOX.INBOX/INBOX/'

Sometimes this yields an unwanted structure (INBOX -> INBOX/INBOX). If so, use the following example (but keep in mind that a test run using --dry is always a good idea):

imapsync --host1 CYRUSHOST --user1 USERNAME_OLD --passfile1 cyrus_password
 --host2 KOLABHOST --user2 USERNAME_NEW --passfile2 kolab_password
 --folderrec INBOX --regextrans2 's/INBOX.INBOX/INBOX/'
 --regextrans2 's/INBOX\/INBOX/INBOX/'

Same thing as Kolab-Admin:

imapsync --host1 CYRUSHOST --user1 USERNAME_OLD --passfile1 cyrus_password
 --host2 KOLABHOST --user2 USERNAME_NEW --authuser2 "manager" --passfile2 kolab_manager_password
 --folderrec INBOX --regextrans2 's/INBOX.INBOX/INBOX/'

The old and new passwords must lie in the specified files. The old Cyrus server used a . as hierarchy separator. Kolab uses /. Kolab-Managerpassword is the same as the manager password of the Kolab frontend.

Personal tools