Hey bit of a beginners question here, I have connected to an imap server using the imaplib and fetched a email, it returns the following:
[('1 (BODY[HEADER.FIELDS (SUBJECT)] {62}', "Subject: Gmail is different. Here's what you need to know.\r\n\r\n"), ')']
My question is how do I select just the subject element ("Subject: Gmail is...").
I have tried a few combinations but yet to be successful.
Thanks for any help!