This commit is contained in:
Stephan Raabe
2024-04-16 21:46:53 +02:00
parent 55f7feea4f
commit 1b36fb7b1b
47 changed files with 829 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/bin/python
import imaplib
obj = imaplib.IMAP4_SSL('imap.gmail.com',993)
obj.login('username@gmail.com','PASSWORD') # write your email and password
obj.select()
print(len(obj.search(None, 'UnSeen')[1][0].split()))