Routines for tstmsgen.kb


ModuleTestEventHandler

File Name

tstmsgen.kb

Syntax

ModuleTestEventHandler( REF moduleTestData: ModuleTestRec );

Parameters

ModuleTestData (I/O) - instance data for this dialog type

Returns

1 = success

0 = failure

Side Effects

None

Description

This routine provides event handling for the ModuleTest dialog

Dialog Forms Called

None


ReadEmailSysData

File Name

tstmsgen.kb

Syntax

ReadEmailSysData( VAL fileName:STRING );

Parameters

fileName - name of file to be read

Returns

1 = success

0 = the file does not exist or does not contain a server account name

Side Effects

None

Description

This function reads a file, and populates the [emailIndex] part of the m_emailSysData structure with the server and client accounts discovered in the file. If the file does not exist, or does not contain at least one server account name, this routine returns a 0. Otherwise, it returns 1.

Dialog Forms Called

None


ReadMessageScriptFile

File Name

tstmsgen.kb

Syntax

ReadMessageScriptFile( VAL fileName:STRING );

Parameters

fileName - name of file to be read

Returns

1 = success

0 = the file does not exist or does not comply with the specified structre

Side Effects

None

Description

This function reads a script file containing a sequence of e-mail messages to be sent instead of the hard-coded default messages. Each message must consist of a required subject and an optional body. See the file "tstmsgen.dat" for details. If the specified file does not exist, or does not comply with the specified structure, this routine returns a 0. Otherwise, it returns 1.

Dialog Forms Called

None