JVCL Help:TJvMail.FindNextMail
JVCL Help: TJvMail.FindNextMail Method
Search in JVCL Help
Search in all projectsSummary
Retrieves the next message identifier of an incoming message.
Pascal
functionFindNextMail: Boolean;
Return Value
True if the function was successful, otherwise false which means the enumeration is complete.
Description
Call FindNextMail function to retrieve the next message identifier of an incoming message. The value of property SeedMessageID determines the message identifier seed for the request. The retrieved message identifier is returned in SeedMessageID.
When property SeedMessageID is set to a valid message identifier, you can call ReadMail to read the message associated with that message identifier.
This function can be called repeatedly to enumerate all messages in the folder.
Because message identifiers are messaging system-specific and can be invalidated at any time, message identifiers are valid only for the current session. If the message identifier passed in SeedMessageID is invalid, FindNextMail raises an EJclMapiError exception.
See Also
TJvMail.FindFirstMail, TJvMail.LogOn, TJvMail.ReadMail, TJvMail.ReadOptions, TJvMail.SeedMessageID
About
Notes
FindNextMail calls can be made only in the context of a valid Simple MAPI session established with the LogOn function.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page