Skip to content

Instantly share code, notes, and snippets.

@drakerehfeld
drakerehfeld / email-scraper.py
Created March 5, 2017 01:36
Python IMAP Client for Downloading Email to Text
import getpass, imaplib
import os
os.chdir("emails")
M = imaplib.IMAP4('<insert IMAP server domain>')
M.login('<insert email address>', '<insert email password>')
M.select()
typ, data = M.search(None, 'ALL')
#data is an array of strings with one element, the ids of emails split by spaces, ex: ["1 2 3 4 5"]
@drakerehfeld
drakerehfeld / keybase.md
Last active July 23, 2016 17:15
keybase.md

Keybase proof

I hereby claim:

  • I am drakerehfeld on github.
  • I am drakerehfeld (https://keybase.io/drakerehfeld) on keybase.
  • I have a public key whose fingerprint is 5D0A F348 DF25 A18A B76A 4AA7 E72A 3E15 53D1 25C6

To claim this, I am signing this object: