Extracting all .msg files from a .pst file

2019-07-30 08:55发布

Note: I was asked to create an app that extracts .msg files from a .pst file preferably in MFC. I was informed that they have tried to use other 3rd party apps but they all failed (don't ask me how) so that's why they are asking me to create an app to do this.

First question: I was told that MFC was the preferred language, so are there MFC libraries to support implementing this in MFC? If not, can C# do?

Second question: If yes, which libraries to use? If not, which C# libraries to use?

标签: c# mfc
2条回答
兄弟一词,经得起流年.
2楼-- · 2019-07-30 09:25

MSG .NET (C# library).
It does exactly what you need, extract all messages as .msg files from a .pst file.

查看更多
再贱就再见
3楼-- · 2019-07-30 09:31

If you really need to write your own application, then you must start by searching and downloading the PST specification. LMGTFY... Ah, you can find it on MSDN:

[MS-PST]: Outlook Personal Folders (.pst) File Format.

Only then can you determine what tools you need for the job, and which programming languages will help you best.


It looks like a well specified binary format. So any language that will allow you to read binary files (both MFC and C# can do this well) will do the job. There may be third-party libraries available for reading .PST files, but you'll really have to search those yourself and evaluate them according to your criteria. For example:

查看更多
登录 后发表回答