title: Python - search for string, copy until end of doc
body: <p>I am using python to open EML files one at a time, process them then move them to another folder. EML file contains an email message including the headers. </p>
  
  <p>The first 35-40 lines of the EML are header info, followed by the actual email message. Since the amount of lines of the header changes, I cant just convert my EML file to a list and tell it:</p>
  
  <pre><code>print emllist[37:]
  </code></pre>
  
  <p>However, the beginning of the last line of the headers is always the same and begins with X-OriginalArrivalTime. </p>
  
  <p>My goal is to parse my EML file, search for the line number X-OriginalArrivalTime is on and then split the EML into 2 strings, one containing the headers info and one containing the message. </p>
  
  <p>I have been rereading the python re documentation, but I cant seem to come up with a good way to attack this. </p>
  
  <p>Any help is greatly appreciated</p>
  
  <p>thanks</p>
  
  <p>lou</p>