简体   繁体   English

使用 Python 在 Outlook 中显示某些 email

[英]Display certain email in Outlook using Python

I have built a script that analyze my outlook inbox mails using Python + Exchangelib.我构建了一个脚本,使用 Python + Exchangelib 分析我的 outlook 收件箱邮件。 It screens my email inbox eg from the last 2 days with some conditional statements and the output would be all emails that need my attention and its attributes (including Conversation-ID and Email-ID).它会筛选我的 email 收件箱,例如最近 2 天的一些条件语句,output 将是所有需要我注意的电子邮件及其属性(包括对话 ID 和电子邮件 ID)。

So far so good.到目前为止,一切都很好。

Now I'd like to open/display one of the emails from my script on my local email client (Outlook).现在我想在我的本地 email 客户端 (Outlook) 上打开/显示来自我的脚本的一封电子邮件。

  1. I found out that there is no possibility to use Exchangelib to display it on Outlook, but is that really the case?我发现不可能使用 Exchangelib 在 Outlook 上显示它,但真的是这样吗? What would be the method for that?那会是什么方法呢?

  2. If so, what are my other options?如果是这样,我的其他选择是什么? The solution should make use the email-attributes from my screening script (eg Conversation-ID or Email-ID) as a pointer to the emails to be opened on Outlook.该解决方案应使用我的筛选脚本中的电子邮件属性(例如对话 ID 或电子邮件 ID)作为指向要在 Outlook 上打开的电子邮件的指针。

  3. How about O365 (which method?) or pywin32(MailItem.display())? O365(哪种方法?)或pywin32(MailItem.display())怎么样? The pros and cons?优点和缺点? As I understand it, pywin32 is not applicable on Unix system.据我了解,pywin32 不适用于 Unix 系统。

Thanks for any inputs:-)感谢您的任何输入:-)

There doesn't seem to be a way to deeplink to a specific email in OWA.似乎没有办法深度链接到 OWA 中的特定 email。 See some discussion at https://github.com/OfficeDev/office-js/issues/1095请参阅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. 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. See a full overview of switches at https://www.howto-outlook.com/howto/commandlineswitches.htm#overviewhttps://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. 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