There is some Ruby software here that decodes OLE .msg files for Outlook. Here is the link:
[login to view URL]
Here is the official .msg file specification from Microsoft:
[login to view URL]%5BMS-OXMSG%[login to view URL]
If you open a .msg file you will see many streams. Here's an example:
__nameid_version1.0
__substg1.0_00020102
__substg1.0_00030102
__substg1.0_00040102
__substg1.0_10100102
__substg1.0_001A001E
__substg1.0_0037001E
__substg1.0_10090102
__substg1.0_3FF8001E
__substg1.0_3FF90102
__properties_version1.0
__recip_version1.0_#00000000
...
__attach_version1.0_#00000000
...
__attach_version1.0_#00000001
...
From my understanding, in this example:
substg1.0_10090102
1009 would be the "property number". But, I think somehow it is encoded and may actually be a different number (refer to Microsoft PDF spec or Ruby application, both of which seem to be processing that correctly).
I need to know how to decode this to obtain the correct "property" number, and would like it in Perl format in a modified version of this file:
[login to view URL]
I can supply some sample .msg files for you to test as well.