Extract IP Email Dataset

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bharaeHBdwajh
    New Member
    • May 2009
    • 2

    Extract IP Email Dataset

    I have a question. How do I extract IP adddress from an email dataset (MIME 1.0 format) ? Do I need regex for that?

    If someone can help me with the code, it would be awesome as well
  • bharaeHBdwajh
    New Member
    • May 2009
    • 2

    #2
    the Email

    Received: (qmail 23153 invoked from network); 14 Apr 2004 21:19:04 -0000
    Received: from dev213.omgkitty .com (HELO omgkitty.com) (@192.168.2.118 )
    by dev50.omgkitty. com with SMTP; 11 Jan 2003 22:45:04 -0000
    Received: (qmail 11105 invoked by uid 99); 14 Apr 2004 22:19:04 -0000
    Received: (qmail 14227 invoked from network); 14 Apr 2004 22:19:04 -0000
    Received: from unknown (HELO ns.eisnoc1.net) (66.54.218.128)
    by www.omgkitty.com with SMTP; 14 Apr 2004 22:45:04 -0000
    Received: from listmail ([216.157.143.2])
    by ns.eisnoc1.net (8.11.1/8.11.1) with ESMTP id h0BMg4000951
    for <nospam@omgkitt y.com>; Sat, 11 Jan 2003 17:42:04 -0500
    Message-Id: <200301112242.h 0BMg4000951@ns. eisnoc1.net>
    Date: Wed, 14 Apr 2004 15:40:09 -0500
    From: "Ronald George" <ron@247custome r.com>
    To: "Omgkitty User" <nospam@omgkitt y.com>
    Subject: Whats up?
    MIME-Version: 1.0
    Content-Type: text/plain; charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit
    X-Mailer: ListMail v1.65
    X-LM-Flags: 1.45.82

    What’s up?

    Comment

    • numberwhun
      Recognized Expert Moderator Specialist
      • May 2007
      • 3467

      #3
      A regex would certainly be a way to go and writing it to match an IP address is pretty easy. Why not give it a shot. If you get stuck, post your code here and we will help you.

      Regards,

      Jeff

      Comment

      Working...