Save as *.eml or *.msg

Dec 3, 2010 at 11:33 AM

I read some discussions above ,a lot of people want to export  PST file in other format,  and so do I,hope some time there will be a latest version to save pst file as other format,

for example : ofstream emlfile << message msg ,it can include or not include the attachment.    The same as the attachment.

Dec 9, 2010 at 5:14 AM

That is a common request. Unfortunately the .msg file format is itself pretty complex, worthy of an SDK in of itself. It's probably out of scope for PSTSDK.

Feb 25, 2011 at 4:06 PM

It's worth noting that in the .NET version of the SDK (see  ) we have a tool called PstExplorer, which is a simple example app to browse a PST, and it has rudamentary ability to save to EML format using a .NET MIME library. 


You could extract that code out of that project and use it in your app if you were so inclined... and if .NET works for you. Or you could go grab one of the many popular c++ MIME libraries and re-write using that library in C++, using our code as a model. 


We're eventually going to be implementing MSG, though as Terry says, it has it's complexities. We've started in on it though.