title: How can I parse email text for components like <salutation><body><signature><reply text> etc?
body: <p>I'm writing an application that analyzes emails and it would save me a bunch of time if I could use a python library that would parse email text down into named components like <code>&lt;salutation&gt;&lt;body&gt;&lt;signature&gt;&lt;reply text&gt;</code> etc.</p>
  
  <p>For example, the following text "<code>Hi Dave,\nLets meet up this Tuesday\nCheers, Tom\n\nOn Sunday, 15 May 2011 at 5:02 PM, Dave Trindall wrote: Hey Tom,\nHow about we get together ...</code>" would be parsed as</p>
  
  <pre><code>Salutation: "Hi Dave,\n"
  Body: "Lets meet up this Tuesday\n"
  Signature: "Cheers, Tom\n\n"
  Reply Text: "On Sunday, 15 May 2011 at 5:02 PM, Dave Trindal wrote: ..."
  </code></pre>
  
  <p>I know there's no perfect solution for this kind of problem, but even a library that does good approximation would help. Where can I find one?</p>