I need to fetch and display message subjects containing a specific word. Here is what I've got so far:
import imaplib imap = IMAP4("imap.mail.com") imap.login("username", "password") r, data = imap.select('INBOX') r, data = imap.search(None, '(SUBJECT "Reminder")')
What I need now is to print a list of subjects of the found messages. How do I do that? I hope my question makes sense.