(Contents)(Previous)(Next)

MailFolders()

Description: Returns the user's list of top level mail folders
Syntax: object.MailFolders()
Parameters:
object Required, the User object
Remarks: The list of mail folders is returned to the caller provided that either the caller is a supervisor or the user object, on which this method is called, is the logged in user. Otherwise, Nothing is returned. It is not possible for the caller to get the list of mail folders belonging to another user if the caller is not a supervisor. Once successfully retrieved, the caller may iterate through the list to access each mail folder belonging to the user object. If you need specific access to the Incoming Mail folder or the Sent Mail folder, you may use the InBox or SentMail methods, respectively. To access messages inside each folder, call GetReceivedMessages() or GetSentMessages().
Returns: A MailFolderList
Example:
Dim session As Object

Dim user As Object

Dim folders As Object

Set session = CreateObject("OfficeTalk.Session")

Call session.Logon(login name, password)

Set folders = user.MailFolders

Set folder = folders.GetFirst


Next