【发布时间】:2019-10-24 06:56:40
【问题描述】:
我们为 Outlook 实施了 Office 365 插件,每次点击都会分析传入邮件或新邮件的电子邮件文本。 现在我们要分析用户在回复中输入的文本,为此我们需要输入的文本和(理想情况下分开的)传入消息的文本。但没有任何功能(如我们所知)能满足我们的需求。
功能
this.item.body.getAsync(Office.CoercionType.Text, function cb(asyncResult) {
...
将回复文本和传入消息的文本指定为不合理且仅与原始邮件“相似”的版本。
this.item.body 函数得到回复的一个结果示例:
This is a test <--- this is a reply text
This is the start of the incoming message
v
Von: Office 365 Message Center <o365mc@microsoft.com>
Gesendet: Dienstag, 9. April 2019 21:15
An: Wilhelm Vortisch
Betreff: Message Center Major Change Update Notification
...
尝试“分开”解析此文本失败,因为此文本不是“原始”回复消息,并且我们的 Outlook 插件可以在用户输入回复内容后激活。
【问题讨论】:
标签: javascript office365 outlook-addin