title: Email Header Analyzer
body: <p>Don't vote down for my Question. </p>
  
  <p>I'm creating tool like on this page <a href="http://www.iptrackeronline.com/email-header-analysis.php" rel="nofollow">http://www.iptrackeronline.com/email-header-analysis.php</a> for analyzing the email headers.</p>
  
  <p>I'm getting Ip address of the user using regular Expression. But There are lot's of ip address in 'Received' header section, I want to ignore all others ip address and get the user original ip address. </p>
  
  <p>Sample Email Header: IP - 70.183.59.6</p>
  
  <pre><code>Return-path: &lt;user@example.com&gt;
  Received: from mac.com ([10.13.11.252])
    by ms031.mac.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28
    2007)) with ESMTP id &lt;0JMI007ZN7PETGC0@ms031.mac.com&gt; for user@example.com; Thu,
    09 Aug 2007 04:24:50 -0700 (PDT)
  Received: from mail.dsis.net (mail.dsis.net [70.183.59.5])
    by mac.com (Xserve/smtpin22/MantshX 4.0) with ESMTP id l79BOnNS000101
    for &lt;user@example.com&gt;; Thu, 09 Aug 2007 04:24:49 -0700 (PDT)
  Received: from [192.168.2.77] (70.183.59.6) by mail.dsis.net with ESMTP
    (EIMS X 3.3.2) for &lt;user@example.com&gt;; Thu, 09 Aug 2007 04:24:49 -0700
  Date: Thu, 09 Aug 2007 04:24:57 -0700
  From: Frank Sender &lt;sender@example.com&gt;
  Subject: Test
  To: Joe User &lt;user@example.com&gt;
  Message-id: &lt;61086DBD-252B-46D2-A54C-263FE5E02B41@example.com&gt;
  MIME-version: 1.0 (Apple Message framework v752.2)
  X-Mailer: Apple Mail (2.752.2)
  Content-type: text/plain; charset=US-ASCII; format=flowed
  Content-transfer-encoding: 7bit
  </code></pre>
  
  <p>If you know any email parser which can fetch the ip address , then give me link. </p>