简体   繁体   English

Microsoft Graph API 提取 a.pst

[英]Microsoft Graph API to extract a .pst

We have a use case here to extract a.pst file of a given user using MS Graph API.我们这里有一个用例,使用 MS Graph API 提取给定用户的.pst 文件。 we are able to do it through PowerShell commands provided by MS.我们可以通过 MS 提供的 PowerShell 命令来实现。 but now want to move away from PS scripts and create a solution using Java/Python.但现在想摆脱 PS 脚本并使用 Java/Python 创建解决方案。 But, unfortunately, I don't see any APIs available from Microsoft to do a mailbox extraction.但是,不幸的是,我没有看到 Microsoft 提供的任何用于提取邮箱的 API。 These extractions are mostly for O365 mailboxes.这些提取主要用于 O365 邮箱。

Looking something equivalent to this command - https://docs.microsoft.com/en-us/powershell/module/exchange/new-mailboxexportrequest?view=exchange-ps寻找与此命令等效的东西 - https://docs.microsoft.com/en-us/powershell/module/exchange/new-mailboxexportrequest?view=exchange-ps

Any guidance or pointers here to any documentation will be much appreciated!!任何文档的任何指导或指针将不胜感激!

There is nothing PST specific in Graph or EWS. Graph 或 EWS 中没有特定的 PST。 It is a purely client side file format.它是一种纯粹的客户端文件格式。 There are some libraries that lets you access PST files, but your mileage will vary greatly.有一些库可以让你访问 PST 文件,但你的里程会有很大差异。

You can create a PST file using Extended MAPI (you will need to add/edit a profile and add/configure the MSUPST MAPI service), but that requires C++ or Delphi.您可以使用扩展 MAPI 创建 PST 文件(您需要添加/编辑配置文件并添加/配置 MSUPST MAPI 服务),但这需要 C++ 或 Delphi。 If using Redemption is an option (it supports any language including Python), it will let you create a PST file using RDOSession .如果使用Redemption是一个选项(它支持包括 Python 在内的任何语言),它将允许您使用RDOSession创建 PST 文件。 LogonPstStore . LogonPstStore You can then create folders and messages in the PST file, and import data ( RDOMail . Import ) in just about any format, including MIME.然后,您可以在 PST 文件中创建文件夹和消息,并以几乎任何格式(包括 MIME)导入数据 ( RDOMail . Import )。 If you are working with Exchange, it will let you work with the Fast Transfer Stream format - it is native to Exchange (use ExportItem EWS operation) and, unlike MIME, preserves all MAPI-specific properties.如果您使用 Exchange,它将允许您使用快速传输 Stream 格式 - 它是 Exchange 的原生格式(使用ExportItem EWS 操作),并且与 MIME 不同,它保留所有 MAPI 特定的属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM