Share via


Mapi.findNext Method

Finds the first or next message in the message store.

Syntax

public str findNext(
   [str messageType, 
    str seedMessageID, 
    int flags])

Run On

Called

Parameters

  • messageType
    Type: str
    The message type; optional. For standard IPMs (interpersonal messages), use " ". If you implement a system that supports other message types, you can specify a specific message type here; optional.
  • seedMessageID
    Type: str
    The message ID at which to start the search. This is typically a messageid value that is returned from a previous call to the FindNext method; optional.
  • flags
    Type: int
    Flags that indicate first in, first out (FIFO) or unread; optional.
    This parameter has two possible values:

Return Value

Type: str
The message ID of the message that is found; an empty string if no message is found.

Remarks

Call this method to find the first message, and then issue subsequent calls to obtain the following messages.

Use the status method to check for Mapi errors after you call this method.

See Also

Mapi Class

Mapi.readMail Method

Mapi.status Method