Connecting Tech Pros Worldwide Help | Site Map

Extract IP Email Dataset

Newbie
 
Join Date: May 2009
Posts: 2
#1: May 12 '09
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
Newbie
 
Join Date: May 2009
Posts: 2
#2: May 12 '09

re: Extract IP Email Dataset


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@omgkitty.com>; Sat, 11 Jan 2003 17:42:04 -0500
Message-Id: <200301112242.h0BMg4000951@ns.eisnoc1.net>
Date: Wed, 14 Apr 2004 15:40:09 -0500
From: "Ronald George" <ron@247customer.com>
To: "Omgkitty User" <nospam@omgkitty.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?
numberwhun's Avatar
Site Moderator
 
Join Date: May 2007
Location: New Hampshire
Posts: 2,565
#3: May 13 '09

re: Extract IP Email Dataset


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
Reply