Aspose.Email - Set Color Category for Outlook Message - MSG

MapiMessage msg = MapiMessage.fromFile("data/message.msg");

// Add category
FollowUpManager.addCategory(msg, "Purple Category");

// Add another category
FollowUpManager.addCategory(msg, "Red Category");

// Retrieve the list of available categories
IList categories = FollowUpManager.getCategories(msg);

// Remove the specified category
FollowUpManager.removeCategory(msg, "Red Category");

// Clear all categories
//FollowUpManager.clearCategories(msg);

msg.save("data/AsposeCategories.msg");

Download Source Code
For More Examples, Please Visit Aspose Docs

Last edited Jun 11, 2014 at 7:30 PM by shoaibkhan, version 2