How pickup events operate when integrated with the
MailEnable Mail Transfer Agent (MTA).

DETAIL

When the MTA moves a message between connectors, an
optional executable file can be run. This is called a pickup event. The MTA
pickup event will pass the mail message filename to the external application.
For example, a VB script that adds some text to the end of each email could be
activated through the pickup event. The application/script receives the
messagefilename and connectortype as parameters.

e.g. program
messagefilename connectortype

Where program is the program
filename, messagefilename is the name of the message file and connectortype is
the type of messages (i.e. SMTP, LS, SF).

Be aware that the directory path to the message is
not passed to the program. The directory path will need to be read from the
registry in the external application.

Firstly, access the registry and
determine the location of the connectors queue and construct the location of the
message command file and the message itself.

Simple Visual Basic
Example:

Sub
Main()'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
This routine is unsupported and is provide for reference purposes only''
This primitive example checks MTA messages for .exe in the message '
contents and deletes any files that
do!'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''Dim
sMsgCommandFile as StringDim sMsgFile as StringDim hFile As LongDim
args() As StringDim sFileLine as String