Skip to main content

Tag: Email

Check Mail

Maybe you also prefer to just check if there’s new mail on the command line, before having to open yet another browser tab and downloading twelve kilograms of Javascript 🤷🏾‍♂️ #!/bin/env python """ Retrieve number and subjects of unread mail from Gmail. External dependencies: Set a GMAIL_LOGIN environment variable as a json string with Gmail access credentials. An example in Zsh: export GMAIL_LOGIN='{"username":"you@gmail.com", "password":"app_password"}' Usage example: In Zsh: $ chmod +x check_mail.