In the event that I switch mail providers, its good to have a backup. I found the isync program that seems like it will do a good job with this. Here is the command line I used to do the backup:
isync -1 -M mail_backup/ -L -s imap.myisp.com -u imap_username -a