RE: how can I read a *.msg file
by Geaslin, Andrew - GPB other posts by this author
Jan 28 2003 10:07PM messages near this date
view in the new Beta List Site
Re: Win32-GUI - Manage Window Objects...?
|
Re: killing a process by window title; was: socket application
I wrote a script a while back that would take a msg file (saved by Exchange
5.5 as part of its detailed logging) and parse the content for keywords. I
had repeated problems running my regexes against these files. It turns out
that the smtp header had special characters in it. This either caused my
regex to fail or gave me problems storing the file in an array, I never
bothered to find out which. Opening the file in binary mode fixed the
problem before I had to dig that deep.
open (FH, $file) or die;
binmode(FH);
-- do stuff --
close FH;
If your msg file is in the same format this might help you.
Caveat: I have never used Win32::MAPI so this advice may not even apply ...
ymmv
-Andrew
-----Original Message-----
From: Royer, Robby E (Compaq) [mailto:RoyerRE@[...].mil]
Sent: Tuesday, January 28, 2003 2:56 PM
To: perl-win32-users@[...].com
Subject: how can I read a *.msg file
I need the ability from PERL to read files in MSG format. I use WIN32::MAPI
to get the list of the attachments. I can modify any attachment that are
Text Files, but I need to be able to read the *.msg attachment and make a
change the the attachment and read resend it with the modification. Can
anyone point me in the correct direction.
thanks
robby
Attachments:
unknown1
|