Fetch Subject & sender in IMAP
- by shadyabhi
After the following code:-
import imaplib
conn = imaplib.IMAP4("mail.daiict.ac.in")
conn.login("200801076","mypass")
# OUT: ('OK', ['Logged in.'])
conn.select()
# OUT: ('OK', ['166'])
Now, how do I fetch the sender and subject of mails in the inbox?