title: Python -Get the body of an multipart email
body: <p>i get an email with the following code:</p>
  
  <pre><code>m = imaplib.IMAP4_SSL(MailReceiveSRV)
  m.login(MailReceiveUSER, MailReceivePWD)
  m.select("Inbox")
  status, unreadcount = m.status('INBOX', "(UNSEEN)")
  unreadcount = int(unreadcount[0].split()[2].strip(').,]'))
  items = m.search(None, "UNSEEN")
  items = str(items[1]).strip('[\']').split(' ')
  for index, emailid in enumerate(items):
      resp, data = m.fetch(emailid, "(RFC822)")
      email_body = data[0][1]
      mail = email.message_from_string(email_body)
      for part in mail.walk():
          body = part.get_payload()
  </code></pre>
  
  <p>FYI: This is always a part of the examplecode. </p>
  
  <p>But body is now a biiig list of objects. If the Content_Type would be Plaintext, it would be much easier. </p>
  
  <p>How can i get access to the body of that mail now? </p>