Skip to content

Instantly share code, notes, and snippets.

View CHBaker's full-sized avatar

Charles Hudson Baker CHBaker

View GitHub Profile
@CHBaker
CHBaker / delete_email.py
Created October 5, 2018 16:04 — forked from giovaneliberato/delete_email.py
Python script to delete emails from a specific sender at gmail
#coding: utf-8
import imaplib
import sys
'''
Simple script that delete emails from a given sender
params:
-username: Gmail username
-pw: gmail pw
-label: If you have a label that holds the emails, specify here