Skip to content

Instantly share code, notes, and snippets.

View dvoita's full-sized avatar

Don Voita dvoita

  • AppFolio, Inc
View GitHub Profile
@bboe
bboe / umail_delete.py
Created September 22, 2011 06:06
Empty UCSB's umail inbox. Run via: ./umail_delete.py -u <USERNAME> -d
#!/usr/bin/env python
import getpass, imaplib, sys
from optparse import OptionParser
def main():
parser = OptionParser()
parser.add_option('-s', '--save', help='file to save contents to')
parser.add_option('-d', '--delete', action='store_true',
help='delete contents')