Managing Conversation Items
Aspose.Email can be used to manage the conversation items on Exchange Server with the EWSClient class. This class uses Exchange Web Services, which are only available in Exchange Server 2007 and later releases. This article shows how to find, copy, move and delete conversation items on Exchange Server 2010. Microsoft Exchange Server 2010 Service Pack 1 is required for all the features included in this section.
Finding Conversations
To get the conversation information from a specific folder on the Exchange Server:
- Connect to the Exchange Server using the IEWSClient class.
- Call the FindConversations() method to find all the conversation items in a folder.
- Display the conversation item properties like ID, conversation topic and flag status.
The following code snippet shows you how to find conversations.
Copying Conversations
To copy conversations from one folder to another:
- Connect to the Exchange Server using the IEWSClient class.
- Call the CopyConversationItems() method to copy the conversation item from the source folder to the destination folder.
The following code snippet shows you how to copy conversations.
Moving Conversations
To move conversations from one folder to another:
- Connect to the Exchange Server using the IEWSClient class.
- Call the MoveConversationItems() method to move a conversation from the source folder to the destination folder.
The following code snippet shows you how to move conversations.
Deleting Conversations
To delete conversations from a folder:
- Connect to the Exchange Server using the IEWSClient class.
- Call the DeleteConversationItems() method to delete the conversation item from the source folder.
The following code snippet shows you how to delete conversations.