title: Extract attachements using mailbox python?
body: <p>I wanted to extract email attachments from mbox using mailbox library in python.</p>
  
  <p>I've used following code to extract From, To, Subject, Date, Body</p>
  
  <pre><code>import mailbox    
  mbox = mailbox.mbox('/tmp/Personal Folders/Inbox/mbox')
  for message in mbox:
      print message['subject']
      print message['To']
      print message['From']
      print message['Date']
  </code></pre>
  
  <p>How to find and extract attachments in every mails? Do I need to include any more library ?</p>