Implementing Outlook 2010's group by conversation using EWS and Exchange 2007

前端 未结 1 867
故里飘歌
故里飘歌 2020-12-17 03:40

We\'re using EWS to generate some analytics on some of our mailboxes.

Part of this is getting a count/name/start/end of conversations. A conversation being analogou

相关标签:
1条回答
  • 2020-12-17 03:49

    You can fetch the ConversationId and the ConversationIndex via extended properties:

    private static readonly ExtendedPropertyDefinition ConversationIdProperty = new ExtendedPropertyDefinition(0x3013, MapiPropertyType.Binary);
    private static readonly ExtendedPropertyDefinition ConversationIndexProperty = new ExtendedPropertyDefinition(0x0071, MapiPropertyType.Binary);
    
    var items = service.FindItems(WellKnownFolderName.Inbox, new ItemView(512) { PropertySet = new PropertySet(BasePropertySet.FirstClassProperties, 
                ConversationIdProperty, ConversationIndexProperty)});
    

    Both are binary properties. Their content is described in great detail here:

    [MS-OXOMSG]: E-Mail Object Protocol Specification, section 2.2.1.2 and 2.2.1.3.

    The properties themselves are defined in [MS-OXPROPS]: Exchange Server Protocols Master Property List.

    0 讨论(0)
提交回复
热议问题