The Microsoft Exchange Event Service information to the Scripting Agent host with the details of the event. The host in turn creates a set of COM objects that are passed to the appropriate scripting engine to be available in the script's namespace. These objects are named EventDetails and Script. The list that follows outlines the properties and methods on the passed object that are script-intrinsic, that is, available in the script's namespace when the script runs:
EventDetails.Session The object that represents the CDO session you're logged on as.Because a script is handling this logged-in CDO session, it automatically has access to all CDO objects and the credentials of the script author.
EventDetails.FolderID The entry identifier of the folder in which the event took place.
EventDetails.MessageID This is the identifier of the triggering message, if a message (and not a timer event) triggered the event.
Script.Response The Script object can be used to set text in the log file for the agent.