How can I check the number of unread Gmail message in my inbox with a short Python script? Bonus points for retrieving the password from a file.
Well it isn't a code snippet but I imagine using imaplib and the Gmail IMAP instructions get you most of the way there.