The purpose of Event Service agents (or scripts) is to respond to events in the folder. To handle the events that can be triggered on a monitored folder, code one routine for each event.
The following empty routines correspond to the four possible events on a folder. These routines are present in the script template you see when you first open the script window:
'DESCRIPTION This event is fired when new message is posted in the folder.
Public Sub Folder_OnMessageCreated()
. . .
End Sub
'DESCRIPTION: This event is fired when a message is deleted from the folder
Public Sub Folder_OnMessageDeleted()
. . .
End Sub
'DESCRIPTION: This event is fired when a message in the folder is changed
Public Sub Message_OnChange()
. . .
End Sub
'DESCRIPTION: This event is fired when the timer on the folder expires
Public Sub Folder_OnTimer()
. . .
End Sub
Note To see the actual source code for this agent, see LitCrit_Agent.asp Event Service Script.