Skip to content

Instantly share code, notes, and snippets.

@govindlahoti
govindlahoti / gmail_imap_dump_eml.py
Created August 17, 2018 16:33 — forked from robulouski/gmail_imap_dump_eml.py
Very simple Python script to dump all emails in an IMAP folder to files.
#!/usr/bin/env python
#
# Very simple Python script to dump all emails in an IMAP folder to files.
# This code is released into the public domain.
#
# RKI Nov 2013
#
import sys
import imaplib
import getpass