title: How do I recieve a html email as a regular text?
body: <p>Here is the code I have thus far:</p>
  
  <pre><code>import email, imaplib
  
  user = 'some username'
  pwd = 'some password'
  
  m = imaplib.IMAP4_SSL("imap.gmail.com")
  m.login(user, pwd)
  
  m.select("[Gmail]/All Mail")
  
  resp, data = m.fetch(1, "(RFC822)")
  
  email_body = data[0][1]
  
  mail = email.message_from_string(email_body)
  
  print mail
  </code></pre>
  
  <p>I currently receive the email with a bunch of weird formatting. I would like to receive the email body as a plain text string. </p>