mirror of
https://github.com/ksyasuda/rice.git
synced 2024-11-22 03:19:58 -08:00
8 lines
212 B
Python
Executable File
8 lines
212 B
Python
Executable File
#!/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()))
|