This is imapfetch - a script that fetches entire IMAP email server folders, and stores them in files on your computer that may be viewed offline with the PyMailGUI program. For details: http://learning-python.com/imapfetch.html