IMAP Dump

EQ Admin

EQ Forum Admin
Staff member
imapdump.pl

imapdump.pl is a utility for extracting all of the mailboxes and messages in an IMAP user's account. When supplied with host/user/password information and the location of a directory on the local system imapdump.pl will connect to the IMAP server, extract each message from the user's account, and write it to a file. The result looks something like this:

/var/backups/INBOX
1 2 3 4 5
/var/backups/Drafts
1 2
/var/backups/Notes/2002
1 2 3 4 5 6 7
/var/backups/Notes/2003
1 2 3
imapdump.pl is called like this:

./imapdump.pl -S host/user/password -f /var/backup

Optional arguments:
-d debug
-I show IMAP protocol exchanges
-L logfile
-m mailbox list (dumps only the specified mailboxes, see the usage notes for syntax)
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.
 

rfs9999

IMAP Tools
> is there IMAP+SSL support for this script?

Yes. To create an SSL IMAP connection append :993 to the host name:

-S host:993/user/password

-Rick
 
Top