Extracting all .msg files from a .pst file

穿精又带淫゛_ 提交于 2020-01-15 10:31:26

问题


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?


回答1:


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:

  • NMapi - C# MAPI Library



回答2:


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



来源:https://stackoverflow.com/questions/15548485/extracting-all-msg-files-from-a-pst-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!