Skip to content

Instantly share code, notes, and snippets.

View jahendrie's full-sized avatar

James Hendrie jahendrie

View GitHub Profile
@jahendrie
jahendrie / get_attachment.py
Created February 2, 2017 14:34
Extracts attachments (pictures) from email files
#!/usr/bin/env python
import sys, os
import base64
token = "X-Attachment-Id"
def print_usage():
print( "Usage: exatt.py [OPTION] EMAIL_FILES" )