Platform SDK: CDO 1.2.1

AutoCategory Sample Application

AutoCategory is a sample application implemented in an event script that is triggered by the Folder_OnMessageCreated and Message_OnChange events. It searches for certain words in the message body of a new or changed message. If at least one of these words (known as "keywords") is found, AutoCategory writes the word into the keyword field of that message.

This is useful because in Microsoft® Outlook™ you can change your message view to display custom fields, including the keyword field. With this field displayed, you can, for example, sort the messages in the folder by keyword.

Because the script defines specific keywords, you can change them by editing the script. The original keywords are TEST, DEBUG, ERROR, and INVENTORY.