在 Microsoft Exchange/EWS/Office 365 中搜索电子邮件

Search emails in Microsoft Exchange/EWS/Office 365

我们想根据(例如)主题字段查询我们的 Exchange 服务器以获取电子邮件。不是从特定地址或到特定地址,而是所有电子邮件 "that went through the server" 和术语 X 出现在主题中。 最好是使用 HTTPS 的一些标准方式,如 REST / SOAP 等。谢谢

我认为您有两个选择,至少在使用 powershell 时是这样。首先也是最快的是使用 get-transportservice | 进行消息跟踪。 get-messagetrackinglog 以查看已接收和发送的消息。 https://technet.microsoft.com/en-us/library/aa997573(v=exchg.160).aspx

其他方法是在每个邮箱中搜索符合预设过滤器的邮件。你可以使用 get-mailbox |搜索邮箱。 https://technet.microsoft.com/en-us/library/dd298173(v=exchg.160).aspx

eDiscovery 是最常用的方法 https://support.office.com/en-us/article/eDiscovery-in-Office-365-143b3ab8-8cb0-4036-a5fc-6536d837bfce . You can use ediscovery is EWS (SOAP) https://msdn.microsoft.com/en-us/library/office/jj190897(v=exchg.150).aspx the REST API's in Office365 also allow you to search at the folder level https://msdn.microsoft.com/office/office365/APi/mail-rest-operations