Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

search .msg files for email address

Status
Not open for further replies.

uffolsen

IS-IT--Management
Oct 4, 2007
3
NO
Is there a way to write a script that search multiple .msg files containing email address and write it to an excel file ? I´ve searched for hours and need some help, I´m a newbee in vbscript.

Best regards
Glenn
 
You can looks at these examples:


And if you don't find what you need you'll have to look at the Reference docs and see if you can figure it out.

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Outlook .msg files are OLE Structured Storage (compound) files. I'm not sure about the ones Outlook Express makes. Doesn't it save as .eml files or something?

The problem is their actual content varies a lot with the mail provider (Exchange vs. Internet) and the source and destination (local Exchange mailbox or other), and whether there is Text and/or HTML mail in them. Some addresses are hard to find, it isn't always as simple as just finding a To or From, and for that matter there may be multiples.

I don't know of any built-in way for VBScript to even read such files, though you might find some component to enable this. It's hard enough from VB6!

You might try Outlook Redemption but it may require Outlook installed on the machine to work. I don't know a lot about it.

This is actually a lot hairier subject than it appears.
 
I should add that when Exchange is the mail provider Outlook is using, addresses may look like:

From: [tt]/O=SPUMCO/OU=WACKED/CN=RECIPIENTS/CN=STIMPY[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top