Automated search of internet headers for IP Addresses?

E

E Patridge

Does anyone know of a way to search the message header of incoming emails? I
would like to take any/all IP addresses from incoming emails and view them as
a field or store them with contact info.
 
K

Ken Slovak

You can't do that using the Outlook object model, the headers aren't exposed
to you. You would have to use CDO 1.21 (optional installation for Outlook
2000 and later) or Extended MAPI (C++ or Delphi code only and a long
learning curve) or Redemption (3rd party library at
www.dimastr.com/redemption) to get at the MAPI property
PR_TRANSPORT_MESSAGE_HEADERS. Once you have that property, which is a
string, you can parse it according to the RFC rules for parsing header
content.

There are examples of accessing that property with CDO at
www.cdolive.com/cdo5.htm and for Redemption at that Web site. There might be
an Extended MAPI example in the MSDN Library somewhere or in the MS KB, but
I'm not sure about that.
 
Top