title: Node.js: Regular expressions to get e-mail headers and body
body: <p>I know very little about regular expressions and I'm having trouble getting the information I need from an e-mail so I'd like your help reading the fields: "status", "to", "from", "subject" and "body".</p>
  
  <pre><code>The e-mail has failed, details:
  
  Action: failed
  Status: 5.0.0 (permanent failure)
  
  ---------- Forwarded message ----------
  From: exp@gmail.com
  To: regular_exp@gmail.com
  Date: Tue, 12 Apr 2011 13:55:23 +0000
  Subject: test
  hellloooooo
  </code></pre>
  
  <p>What's the best way to do it using JavaScript?</p>
  
  <p>Thanks</p>