Chapter 3 DynaScript Predefined Objects
Represents a list of mail pieces on a POP3 server.
To use a mailList property:
mailList.propertyName
To use a mailList method:
mailList.MethodName( parameter )
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:
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); } -->
mailList.count
This property is read-only.
The number of messages in the mail list.
Integer.
This example displays the number of messages in the mail list.
<!--SCRIPT mlist = new MailList ("mail.sybase.com", "elmo", "secret", "elmo@mail.sybase.com"); document.WriteLn(mlist); document.WriteLn("There are " + mlist.count + " messages in the mail list"); -->
"mailPiece object (incoming)".
"mailPiece object (outgoing)".
Copyright © 2001 Sybase, Inc. All rights reserved. |
![]() |