Chapter 3 DynaScript Predefined Objects


mailList object

Object

Represents a list of mail pieces on a POP3 server.

Syntax

To use a mailList property:

mailList.propertyName

To use a mailList method:

mailList.MethodName( parameter ) 

Description

The mailList object is used to retrieve a list of the mail pieces on a POP3 server. The list, once returned, contains enough information for the user to sort through and select particular mail pieces for full retrieval.

To create a preview list of incoming mail piece objects, use the mailList constructor. The syntax to create a new mailList object is:

mailListObj = new MailList( popServer, popUser, popPassword, fullUserName [, useAPOP] );

The parameters are:

Example

This example returns a list of the mail pieces that are waiting for the user elmo. The list indicates where the message was sent from and the subject line of the message:

<!--SCRIPT 
mlist = new MailList ("mail.sybase.com", "elmo", "secret", "elmo@mail.sybase.com");
for ( i in mlist) {
inPiece=mlist[i]
document.writeln(inPiece.from);
document.writeln(inPiece.subject);
}
-->

See also

"mailPiece object (incoming)".

"mailPiece object (outgoing)".

"attachment object".

 


Copyright © 1999 Sybase, Inc. All rights reserved.