(Contents)(Previous)(Next)

Message List Object

The Message List object is a list which lets you access OfficeTalk mail messages. The Message List object may be obtained by a call to mailfolder.GetReceivedMessages or mailFolder.GetSentMessages. The Messages list object provides access to the common list object functionality.

Note: The Add method does exist for the Message List object, however this method should not be used for sending messages. The way to create new mail messages is via a call to the Session.NewMessage.

Message List Methods
Add Adds a new mail message to the associated folder. Note that this method is supplied for the purposes of adding mail directly to a specific folder of the current user. It should not be used for sending mail. Use Session.NewMessage instead.
Count Returns the number of messages in the list.
SetFilter Sets the list filter
SetFilterAnd Logically ANDs the filter with this expression
SetFilterOr Logically ORs the filter with this expression
ClearFilter Clears the list filter
FindItemByID Finds a message with an ID which matches the passed in ID
GetFirst Gets the first message in the message list
GetNext Gets the next message in the message list.
GetLast Gets the last message in the message list
GetPrev Gets the previous message in the message list


Next