title: Python-Parse email Body and truncate MIME headers
body: <p>I have an email body which looks somewhat like .</p>
  
  <p>Now I want to remove all the header from it and just have the conversation email text. How can I do it in python?</p>
  
  <p>I tried email.parser module but that isn't giving me the result which I want.</p>
  
  <p>Please find the below code for more information.</p>
  
  <pre><code>import email
  a="""--c66f5985-233d-4e89-b598-6398b60cbe00
  Content-Type: multipart/alternative;
       differences="Content-Type";
      boundary="d5eff9f8-76b3-4320-adfb-1e51add8fa8f"
  
  --d5eff9f8-76b3-4320-adfb-1e51add8fa8f
  Content-Type: text/plain; charset=us-ascii
  Content-Transfer-Encoding: quoted-printable
  
  THis is a demo email body
  
  Thanks And Regards,
  Ana
  """
  
  
  
  b = email.message_from_string(a)
  if b.is_multipart():
      for payload in b.get_payload():
          # if payload.is_multipart(): ...
          print (payload.get_payload())
  else:
      print (b.get_payload())
  </code></pre>