TTMSFNCCustomCloudGoogleGmail.GetMails Method
Starts an asynchronous request that lists the messages of the specified labels into the
Mailscollection.
API unit family: TMSFNCCloudGoogleGmail
Declaring type: TTMSFNCCustomCloudGoogleGmail
Syntax
procedure GetMails(Labels: string = 'INBOX'; AMaxResults: Integer = 50; GetNextPage: Boolean = True; AQuery: string = '');
Parameters
| Name | Description |
|---|---|
Labels |
Comma-separated label names to filter on, for example "INBOX". |
AMaxResults |
Maximum number of messages to retrieve per page. |
GetNextPage |
When True, automatically continues retrieving subsequent pages until all matching messages are loaded. |
AQuery |
Optional search query that further filters the messages. |