Thanks acquarium and natetut. I found a link to a perlmonk sample code snipit. I had to modify the code a little bit since the original did not work, but I think I have it working now. The only header information that I am able to get are the Sendername, To, Subject and Body. I am unable to get the messageid, or the date, or any other header information and I do not see them anywhere in win32 ole that I could use to modify the code for them. I added a counter and am renaming the images in sequential order but by this method the same messge will have different id's depending on when I run the script.
This is working great for my inbox. However, I do not see where or how to open a standalone PST file.