Check unread count of Gmail messages with Python

后端 未结 7 1360
面向向阳花
面向向阳花 2020-12-22 17:41

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.

7条回答
  •  生来不讨喜
    2020-12-22 18:19

    Well it isn't a code snippet but I imagine using imaplib and the Gmail IMAP instructions get you most of the way there.

提交回复
热议问题