繁体   English   中英

使用 Python 在 Outlook 中显示某些 email

[英]Display certain email in Outlook using Python

我构建了一个脚本,使用 Python + Exchangelib 分析我的 outlook 收件箱邮件。 它会筛选我的 email 收件箱,例如最近 2 天的一些条件语句,output 将是所有需要我注意的电子邮件及其属性(包括对话 ID 和电子邮件 ID)。

到目前为止,一切都很好。

现在我想在我的本地 email 客户端 (Outlook) 上打开/显示来自我的脚本的一封电子邮件。

  1. 我发现不可能使用 Exchangelib 在 Outlook 上显示它,但真的是这样吗? 那会是什么方法呢?

  2. 如果是这样,我的其他选择是什么? 该解决方案应使用我的筛选脚本中的电子邮件属性(例如对话 ID 或电子邮件 ID)作为指向要在 Outlook 上打开的电子邮件的指针。

  3. O365(哪种方法?)或pywin32(MailItem.display())怎么样? 优点和缺点? 据我了解,pywin32 不适用于 Unix 系统。

感谢您的任何输入:-)

似乎没有办法深度链接到 OWA 中的特定 email。 请参阅https://github.com/OfficeDev/office-js/issues/1095上的一些讨论

Outlook provides some command-line switches to open Outlook in various modes, but there doesn't seem to be a switch to open Outlook with a specific email ID. https://www.howto-outlook.com/howto/commandlineswitches.htm#overview上查看开关的完整概述

Regarding exchangelib and Outlook: exchangelib is a cross-platform tool and Outlook is only available on Windows and OS X, so exchangelib doesn't offer any integration with Outlook.

暂无
暂无

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

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