Platform SDK: CDO 1.2.1 |
In the following assignment, the AutoCategory script sets four keywords:
searcharray = Array("TEST","DEBUG","ERROR", "INVENTORY")
You can run this sample application using these keywords, or you can edit the script and replace them with others of your choosing. Because "keyword" is a field visible through Microsoft Outlook, you can create a view that displays keywords for messages, within a given folder.
To run AutoCategory
At this point, this view will show the contents of the Keywords field of any message in this folder.
Note When the AutoCategory script finds a keyword in a message, it writes it into the keyword field of the message, automatically overwriting the previous contents of that field. For this reason, you cannot use more than one AutoCategory agent in a folder to search messages for different sets of keywords. In this case, whichever agent runs second would overwrite the output of the agent that ran first.
To avoid this problem, you could consider changing each of these agents to append — not overwrite — its output to the keyword field.