It returns only the messages with the flag DELETED not set.
Before calling this method, a connection to the IMAP server must be
established and a user must be authenticated successfully, and a mailbox
must be selected.
The format of the returned array is
array( message_id => size );
Example:
array( 2 => 1700, 5 => 1450, 6 => 21043 );
If $contentType is set, it returns only the messages with
$contentType in the Content-Type header.
For example $contentType can be "multipart/mixed" to return only the
messages with attachments. public listMessages ( string $contentType = null ) : array(int) | ||
$contentType | string | |
return | array(int) |