开发者

How do I access MAPI properties using EWS Java API?

I am working to process Exchange emails and figure out when an e-mail was read. I believe this information can be obtained using one of the MAPI Properties (PR_LAST_MODIFICATION_TIME).

Can someone help me开发者_运维技巧 to get this property value using EWS Java API? I could find equivalent samples for C# but not for Java.


Isn't EWS Managed API the same for C# and for Java? Item class has property LastModifiedTime and you can use it with all objects of classes derived from Item so I really do not see what you having problem with.

Sample code:

Item item = Item.Bind(service, itemId);
if(item.LastModifiedTime > lastCheckTime)
{
    ProcessItem(item); //here you put your code of course
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜