Dump to IMAP


EQ Forum Admin
Staff member

dumptoIMAP.pl is used to load the mailboxes and messages exported from an IMAP server by the imapdump.pl script. See usage() notes for a list of the arguments used to run it.

If you ran imapdump.pl -S host/user/pwd -f /tmp/BACKUP then you could restore all of the mailboxes & messages with the following command:

./dumptoIMAP.pl -S host/user/pwd -D /tmp/BACKUP

If you wanted to restore just the INBOX and the Sent mailboxes you would add -m "INBOX,Sent"

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.