سؤال

Possible Duplicate:
How can I create an Outlook PST file using .Net?

How can I write an Outlook PST file with headers? Preferably in .NET, though C++ or anything else would be useful too

I have looked at the PST SDK by Microsoft, but it appears to be read only. The only code I have found is the CodeProject article "Writing Email to the File of the PST Format", but this code can't write e-mail headers - just body and subject.

هل كانت مفيدة؟

المحلول

Your best bet is to use Microsoft's Messaging API (MAPI). There's plenty of help available online, and there's a sample app called MFC Mapi that one of the Microsoft guys wrote to demonstrate how the API works.

نصائح أخرى

Would the .pst file format documentation be of use to you? From the brief look I took, it seems to document the format itself, so you can implement reading/writing functionality. I don't know how detailed it is, since I haven't used it myself.

http://msdn.microsoft.com/en-us/library/ff385210%28v=office.12%29.aspx

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top