Class FollowUpManager
FollowUpManager class
Provides methods for managing Outlook follow-up flags, categories, and voting options on MAPI messages. This static class enables setting and removing follow-up flags, managing categories (keywords), setting due dates and reminders, and configuring voting buttons on MapiMessageItemBase objects.
public static class FollowUpManager
Methods
| Name | Description |
|---|---|
| static AddCategory(MapiMessageItemBase, string) | Adds the category for a message. |
| static AddVotingButton(MapiMessageItemBase, string) | Adds the voting button. |
| static ClearCategories(MapiMessageItemBase) | Clears the categories. |
| static ClearFlag(MapiMessageItemBase) | Clears the follow-up flag and reminder. |
| static ClearVotingButtons(MapiMessageItemBase) | Deletes the voting buttons. |
| static GetCategories(MapiMessageItemBase) | Get the available message categories. |
| static GetOptions(MapiMessageItemBase) | Gets the follow-up options of a message. |
| static GetReactions(MapiMessageItemBase) | Get the available message reactions. |
| static GetVotingButtons(MapiMessageItemBase) | Get the available message voting buttons. |
| static MarkAsCompleted(MapiMessageItemBase) | Marks the flagged message as completed. |
| static RemoveCategory(MapiMessageItemBase, string) | Removes the category. |
| static RemoveVotingButton(MapiMessageItemBase, string) | Removes the voting button. |
| static SetFlag(MapiMessageItemBase, string) | Sets the follow-up flag for a message. |
| static SetFlag(MapiMessageItemBase, string, DateTime, DateTime) | Sets the follow-up flag for a message. |
| static SetFlagForRecipients(MapiMessageItemBase, string) | Sets the flag for a draft message to remind recipients to follow-up. |
| static SetFlagForRecipients(MapiMessageItemBase, string, DateTime) | Sets the flag for a draft message to remind recipients to follow-up. |
| static SetOptions(MapiMessageItemBase, FollowUpOptions) | Sets the additional follow-up options for a message. |
Remarks
Use SetFlag to add follow-up flags to messages, String) and RemoveCategory to manage message categories, !:MarkAsComplete to mark flagged messages as completed, and SetOptions to configure multiple follow-up properties at once. The class works with Outlook-specific MAPI properties and is designed for use with MapiMessage and related message types.
Examples
The following example shows how to use FollowUpManager to add follow-up flags and categories to a MAPI message.
[C#]
// Create a MapiMessage from MailMessage
MailMessage mailMessage = MailMessage.Load("message.eml");
MapiMessage mapiMessage = MapiMessage.FromMailMessage(mailMessage);
// Set a follow-up flag
FollowUpManager.SetFlag(mapiMessage, "This is a follow-up message");
// Set categories
FollowUpManager.SetCategory(mapiMessage, "Important");
FollowUpManager.SetCategory(mapiMessage, "Work");
// Mark as complete
FollowUpManager.MarkAsComplete(mapiMessage);
// Save the message with follow-up information
mapiMessage.Save("message_with_flag.msg", SaveOptions.DefaultMsgUnicode);
[Visual Basic]
' Create a MapiMessage from MailMessage
Dim mailMessage As MailMessage = MailMessage.Load("message.eml")
Dim mapiMessage As MapiMessage = MapiMessage.FromMailMessage(mailMessage)
' Set a follow-up flag
FollowUpManager.SetFlag(mapiMessage, "This is a follow-up message")
' Set categories
FollowUpManager.SetCategory(mapiMessage, "Important")
FollowUpManager.SetCategory(mapiMessage, "Work")
' Mark as complete
FollowUpManager.MarkAsComplete(mapiMessage)
' Save the message with follow-up information
mapiMessage.Save("message_with_flag.msg", SaveOptions.DefaultMsgUnicode)
See Also
- namespace Aspose.Email.Mapi
- assembly Aspose.Email