imapcopy.pl
imapcopy is a utility for copying a user's messages from one IMAP server to another.
imapcopy is called like this:
./imapcopy -S host1/user1/password1 -D host2/user2/password2
Optional arguments:
If you have a question about using this script please reply.
If you would like to download the script please see How to get the IMAP Tools.
If you only need to copy a few email accounts you may be interested in the Copy My Mail service.
imapcopy is a utility for copying a user's messages from one IMAP server to another.
imapcopy is called like this:
./imapcopy -S host1/user1/password1 -D host2/user2/password2
Optional arguments:
-d debug
-I show IMAP protocol exchanges
-L logfile
-m mailbox list (copy only certain mailboxes,see usage notes)
-r reset the \DELETE flag on copied messages
-p <root mailbox> put copied mailboxes under a root mbx
-M <file> mailbox mapping (eg, src:inbox -> dst:inbox_copied)
-i initialize mailbox (remove existing msgs first)
-U run in "update" mode
Run imapcopy.pl -h to see complete set of arguments. -I show IMAP protocol exchanges
-L logfile
-m mailbox list (copy only certain mailboxes,see usage notes)
-r reset the \DELETE flag on copied messages
-p <root mailbox> put copied mailboxes under a root mbx
-M <file> mailbox mapping (eg, src:inbox -> dst:inbox_copied)
-i initialize mailbox (remove existing msgs first)
-U run in "update" mode
If you have a question about using this script please reply.
If you would like to download the script please see How to get the IMAP Tools.
If you only need to copy a few email accounts you may be interested in the Copy My Mail service.