You can fetch the unique identifier for a specific message by
providing the $msgNum parameter.
The unique identifier can be used to recognize mail from servers
between requests. In contrast to the message numbers the unique
numbers assigned to an email usually never changes.
The format of the returned array is:
array( message_num => unique_id );
Example:
array( 1 => 216, 2 => 217, 3 => 218, 4 => 219 );
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. public listUniqueIdentifiers ( integer $msgNum = null ) : array(string) | ||
$msgNum | integer | |
return | array(string) |