FILE: A Visual Basic-Based Active Messaging Inbox AgentLast reviewed: March 2, 1998Article ID: Q173915 |
The information in this article applies to:
SUMMARYThis Inbox Agent executes only when the Microsoft Exchange or Microsoft Outlook client is running and a message that meets its criteria causes it to fire (versus some variations of Visual Basic-based Inbox Agents that are required to run all of the time in order to continuously monitor the Inbox). The following sample file assumes you are running either the Microsoft Exchange or Microsoft Outlook messaging client, and that the Active Messaging Library version 1.1 or higher is installed and registered on the system and referenced by the Project. For information on where to acquire the Active Messaging Libraries, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q171440 TITLE : INFO: Where to Acquire the Active Messaging LibrariesThe following file is available for download from the Microsoft Software Library:
~ InbxAgnt.exe (size: 51098 bytes)For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q119591 TITLE : How to Obtain Microsoft Support Files from Online Services MORE INFORMATION
Launcher Custom Action and Forward
DescriptionThis sample has two parts. Launcher.dll is a custom action .dll for your Inbox Assistant. When a message arrives that meets the conditions for your Inbox rule, Launcher launches your VB executable. The executable will be handed the incoming message's ID on the command line. This is makes it possible to develop programs in Visual Basic or another language to perform actions on incoming messages. Forward.exe, is an example of one of these programs. Forward.exe will forward a message that meets the conditions of an Inbox rule. Forward.exe is a Visual Basic project.
Setup
More Information on Launcher for Visual C++ DevelopersThe Launcher is a modified version of the Crarun project that is included in the Exchange Development Kit (EDK). The kit's Crarun.dll launches a program without specifying which message just arrived. This sample takes the .dll one step by further by launching a program and then passing the message ID of the arriving message on the command line. This way, the launching program can access the message object and act on it. Launcher's Visual C++ source is found in the Launcher directory.
ForwardIn this sample, Launcher launches Forward and hands it the MessageId of the incoming message. Using Active Messaging, Forward logs onto the existing session, then calls the Session.GetMessage method to retrieve the message object. A new message is then created, which it subsequently populates with properties and attributes of the original message (including prepending a comment at the beginning of the body). It then sends the new message onto the recipient specified in the Subject line of the original message. Forward's Visual Basic source is found in the Forward directory.
MiscellaneousThe Launcher.dll is borrowed from the ExPrint sample found at the following Web site:
http://www.microsoft.com/ithome/resource/exchange/misc/default.htm REFERENCESFor additional information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q176916 TITLE : INFO: Active Messaging and Collaboration Data Objects (CDO) Keywords : ActMsg Version : WINDOWS:1.1 Platform : WINDOWS Issue type : kbfile Solution Type : kbsample |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |