« Back to blog

Python snippet: check status of your Gmail inbox

Here's a tiny Python script to check the number of messages (total and unread) in your Gmail inbox.

(You need to enable IMAP on your Gmail account for this to work).

[Updated: fixed bug in the script, thanks to Josh]

| Viewed
times
Filed under: