MAPcopy is a small utility that will help you migrate from one IMAP e-mail message store to a another one.
1) wget http://home.arcor.de/armin.diehl/imapcopy/imapcopy.tar.gz
2) tar -xzvf imapcopy.tar.gz
3) cd imapcopy
4) Edit the file “ImapCopy.cfg”
Adjust the source and destination server. Add the source and destination users and passwords. The following sample copys the users “foo” and “bar” from server source.imap.com port 143 to server dest.imap.com port 145. Passwords for foo are “foosrcpw” and “foodestpw”, for bar “barsrcpw” and “bardstpw”. The folders “Trash”, “Sent” and “Sent Objects” will not be copied.
SourceServer source.imap.com
SourcePort 143
DestServer dest.imap.com
DestPort 145
#CreateEmptyFolders
skipfolder INBOX.Trash
skipfolder INBOX.Sent
skipfolder "INBOX.Sent Objects"
# SourceUser SourcePassword DestinationUser DestinationPassword
Copy "foo" "foosrcpw" "foo" "foodestpw"
Copy "bar" "barsrcpw" "bar" "bardestpw"
Now verify that all users and passwords are correct:
imapcopy -t
You can also show some information about the used servers:
imapcopy -i
You can copy the mails as:
imapcopy
No comments:
Post a Comment