Skip to content

Instantly share code, notes, and snippets.

@Micah81
Micah81 / gmail.py
Created January 27, 2017 22:28 — forked from vwillcox/gmail.py
import imaplib
import email
#connect to gmail
mail = imaplib.IMAP4_SSL('imap.gmail.com')
mail.login('[email protected]','yourPassWordPlease')
mail.select('inbox')
mail.list()