mirror of
https://github.com/ksyasuda/rice.git
synced 2025-12-05 20:53:38 -08:00
updates
This commit is contained in:
7
eww/scripts/mails
Executable file
7
eww/scripts/mails
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/python
|
||||
|
||||
import imaplib
|
||||
obj = imaplib.IMAP4_SSL('imap.gmail.com',993)
|
||||
obj.login('YOU@EMAIL.COM','PASSWORD') # write your email and password
|
||||
obj.select()
|
||||
print(len(obj.search(None, 'UnSeen')[1][0].split()))
|
||||
Reference in New Issue
Block a user