EWS托管API - 如何在每个邮件项目上获取回复/转发标志? [英] EWS Managed API - How to get the reply / forward flag on each mail item?

查看:87
本文介绍了EWS托管API - 如何在每个邮件项目上获取回复/转发标志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,非常感谢EWS Managed API。这是一个节省大量时间。我已经能够使用可用的API实现我想要的大部分功能。我遇到的一个问题是在尝试查明每个邮件是否已被回复或已被转发时。 OWA能够在每个适用的邮件项目上显示回复/转发图标,这意味着该信息在交换服务器中可用。有人可以指出如何检索它吗?
提前谢谢。

First of all, thanks a lot for EWS Managed API.  It is a BIG time saver.  I've been able to achieve most of what I wanted using the available API.  One point where I'm stuck though is while trying to find out whether each mail item has been replied to or has been forwarded.  OWA is able to show the reply/forward icon on each applicable mail item and that should mean that the information is available in the exchange server.  Can somebody point out as to how to retrieve it?
Thanks in advance.

推荐答案

Outlook(和3)有3个扩展MAPI属性其他客户端)对消息采取操作时更新:

PR_ICON_INDEX(0x10800003)
PR_LAST_VERB_EXECUTED(0x10810003)
PR_LAST_VERB_EXECUTION_TIME(0x10820040)

这些记录在 http://download.microsoft.com/download/5/D/D/5DD33FDF-91F5-496D-9884-0A0B0EE698BB/%5BMS-OXOMSG%5D.pdf 。要使用EWS托管API访问它们,您需要定义扩展属性定义:

There are 3 extended MAPI properties that Outlook (and other clients) update when they take an action on a message:

PR_ICON_INDEX (0x10800003)
PR_LAST_VERB_EXECUTED (0x10810003)
PR_LAST_VERB_EXECUTION_TIME (0x10820040)

These are documented in http://download.microsoft.com/download/5/D/D/5DD33FDF-91F5-496D-9884-0A0B0EE698BB/%5BMS-OXOMSG%5D.pdf . To access them with the EWS Managed API, you will need to define extended property definitions:
public static ExtendedPropertyDefinition PR_ICON_INDEX = new ExtendedPropertyDefinition(0x1080, MapiPropertyType.Integer);
public static ExtendedPropertyDefinition PR_LAST_VERB_EXECUTED = new ExtendedPropertyDefinition(0x1081, MapiPropertyType.Integer);
public static ExtendedPropertyDefinition PR_LAST_VERB_EXECUTION_TIME = new ExtendedPropertyDefinition(0x1082, MapiPropertyType.SystemTime);



然后,您可以将这些定义与PropertySet对象一起使用。


You can then use those definitions with PropertySet objects.


这篇关于EWS托管API - 如何在每个邮件项目上获取回复/转发标志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆