This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Check mail and trigger the blink(1) when new mail is found | |
import os, sys, imaplib, email, getopt, time | |
from subprocess import Popen, DEVNULL | |
class MailBlinker(): | |
def __init__(self, quiet=False): | |
# GMail username/password | |
self.username = 'your_gmail_username' |