title: Get email subject and sender using imaplib?
body: <p>I am getting the following response after executing the code shown below the response. How can I parse through this response to get the sender (John Smith) and the subject (test)?</p>
  
  <pre><code>[('13010 (BODY[HEADER.FIELDS (SUBJECT FROM)] {57}', 'From: John Smith &lt;jsmith@gmail.com&gt;\r\nSubject: test\r\n\r\n'), ')']
  </code></pre>
  
  <p>-</p>
  
  <pre><code>conn.fetch(message, '(BODY[HEADER.FIELDS (SUBJECT FROM)])')
  </code></pre>