使用MAPI或Outlook兑换在2016/2019上使用MAPI或Outlook赎回
我被要求进行一些研究,以了解如何访问用户的邮箱并执行一些基本任务(复制电子邮件,创建文件夹,删除文件夹/电子邮件,根据某个条件将电子邮件从一个文件夹移动到另一个标准)服务器2016/2019没有Outlook 。 我已经看到推荐的方法是通过EWS。 但是HTTP上的EWS或“任何东西”不是一个选择,因为对于我们想要的东西来说,它太慢了。 所以我看的是马普。但是我看到很多帖子表明Mapi Beacame已过时,并且无法与Exchange 2016/2019合作。
因此,我的问题是:我可以在Exchange Server 2016/2019上使用MAPI或Outlook-Resempt执行上面提到的这些基本任务,而无需Outlook?
I have been asked to do some research on how to access a user's mailbox and execute some basic tasks(copy emails, create folders, delete folders/emails, move emails from one folder to another based on a certain criteria) on Exchange Server 2016/2019 without Outlook.
I have seen that the recommended method is through EWS.
But EWS or "anything" over http is not an option as it would be too slow for what we're looking for.
So what i have looked at was MAPI. But i have seen a lot of posts indicating that MAPI beacame obsolete and won't work with Exchange 2016/2019.
So my question is: Can i perform these basic tasks mentioned above with MAPI or Outlook-Redemption on Exchange Server 2016/2019 without Outlook?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
MAPI的独立版本失败了,不再可以从Microsoft下载。即使可用,它也从未支持Mapi-over-HTTP和OAuth2身份验证。
对于EWS或图形,如果要使用OAuth2身份验证,则必须在服务器上注册您的应用程序。只有基本身份验证(默认情况下,M365邮箱被禁用),即可在没有服务器上没有任何设置的情况下进行操作。
要使用赎回,您将需要MAPI系统,如今,这意味着必须安装Outlook。在这种情况下,您可以使用为Outlook创建的现有配置文件,只要授权成功,Outlook已被预先授权就可以连接到任何Exchange Mailbox,因此在服务器上无需完成。在这种情况下,您可以使用Outlook Object模型(包装扩展的MAPI和Outlook GUI,但只能在主要的Outlook线程上使用)或兑换(也可以包装扩展的MAPI,但可以在辅助线程上使用)。
The standalone version of MAPI went out of support a couple year ago and is no longer available for download from Microsoft. Even if it were available, it never supported MAPI-over-HTTP and OAuth2 authentication.
For EWS or Graph, your application must be registered on the server if OAuth2 authentication is to be used. Only Basic authentication (which is disabled by default for M365 mailboxes) will work out of the box without any setup on the server.
To use Redemption, you will need the MAPI system, which nowadays means Outlook must be installed. In that case, you can use an existing profile created for Outlook, nothing needs to be done on the server since Outlook is pre-authorized to connect to any Exchange mailbox as long as authorization is successful. In that case you can use either Outlook Object Model (which wraps both Extended MAPI and Outlook GUI, but can only be used on the main Outlook thread) or Redemption (which also wraps Extended MAPI, but can be used on secondary threads).