Discussion:
Outlook .msg File Format
(too old to reply)
Morpheus
2006-03-04 09:49:27 UTC
Permalink
I am trying to find the Outlook .msg file format. I need to write an
application which will poll a mail box periodically and downlaod any e-mails
found, then save them in .msg file format for later reading with Outlook.
Can anybody help me with this format?
Alternatively, is there any other e-mail file format I could use that will
allow Outlook to reconstruct the entire mail message including all
attachments, etc? when the saved file is opened in Outlook.
Reghards,
Morpheus
Ken Slovak - [MVP - Outlook]
2006-03-06 15:10:49 UTC
Permalink
MSG or possibly OFT are your only choices to preserve all the message
properties. Neither format is documented. You'd have to use Outlook code or
reverse engineer the formats yourself.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
Post by Morpheus
I am trying to find the Outlook .msg file format. I need to write an
application which will poll a mail box periodically and downlaod any e-mails
found, then save them in .msg file format for later reading with Outlook.
Can anybody help me with this format?
Alternatively, is there any other e-mail file format I could use that will
allow Outlook to reconstruct the entire mail message including all
attachments, etc? when the saved file is opened in Outlook.
Reghards,
Morpheus
Morpheus
2006-03-06 19:26:30 UTC
Permalink
Hi Ken,
Coluld you elaborate what you mean by "use Ooutlook code" and any pointers
on the reverse engineering issue would be helpful.
Regards,
Morpheus
Post by Ken Slovak - [MVP - Outlook]
MSG or possibly OFT are your only choices to preserve all the message
properties. Neither format is documented. You'd have to use Outlook code or
reverse engineer the formats yourself.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
Post by Morpheus
I am trying to find the Outlook .msg file format. I need to write an
application which will poll a mail box periodically and downlaod any e-mails
found, then save them in .msg file format for later reading with Outlook.
Can anybody help me with this format?
Alternatively, is there any other e-mail file format I could use that will
allow Outlook to reconstruct the entire mail message including all
attachments, etc? when the saved file is opened in Outlook.
Reghards,
Morpheus
Ken Slovak - [MVP - Outlook]
2006-03-07 14:12:41 UTC
Permalink
You can open an OFT item using Outlook's Application.CreateItemFromTemplate
method. For a MSG file you'd have to use a 3rd party library (Redemption at
www.dimastr.com/redemption) to be able to import a MSG file into an Outlook
item.

I have nothing to provide about reverse engineering a MSG file. You'd have
to set various properties, check the MSG using a Hex editor and then change
properties and see where the binary changed in the editor. And repeat that
for every property on an item. Good luck with that.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
Post by Morpheus
Hi Ken,
Coluld you elaborate what you mean by "use Ooutlook code" and any pointers
on the reverse engineering issue would be helpful.
Regards,
Morpheus
Loading...