title: Parsing email conversations with regular expressions
body: <p>I am writing a BI application that needs to extract meta data from email conversation.
  Namely given an email thread I wish to extract all the participants and the structure of the conversation. For example, given a conversation like this: </p>
  
  <pre><code>From: me
  To: You
  CC: someone
  
  &lt;Body&gt;
  
  From: You
  To: Someone
  CC: Someone else
  
  &lt;Body&gt;
  </code></pre>
  
  <p>I want to extract the 'You' sent and email to 'Someone' with a CC to 'SomeOneelse' and all this was forwarded from 'Me' to 'You' with a cc to 'someone'...</p>
  
  <p>My problem is that I need to handle different providers.</p>
  
  <p>Is anybody familiar with a set of regexes somewhere on the net that cover such demands?</p>
  
  <p>Thank you!</p>