Get information from the cache.
public get ( string $mailbox, array $uids = [], array $fields = [], integer $uidvalid = null ) : array | ||
$mailbox | string | An IMAP mailbox string. |
$uids | array | The list of message UIDs to retrieve information for. If empty, returns the list of cached UIDs. |
$fields | array | An array of fields to retrieve. If empty, returns all cached fields. |
$uidvalid | integer | The IMAP uidvalidity value of the mailbox. |
return | array | An array of arrays with the UID of the message as the key (if found) and the fields as values (will be undefined if not found). If $uids is empty, returns the full (unsorted) list of cached UIDs. |