This method supports unique IDs instead of message numbers. See
{@link ezcMailImapTransportOptions} for how to enable unique IDs
referencing.
$messages is an array of message numbers, for example:
array( 1, 2, 4 );
The format of the returned array is:
array( message_number => size )
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.
Example:
$imap = new ezcMailImapTransport( 'imap.example.com' );
$imap->authenticate( 'username', 'password' );
$imap->selectMailbox( 'mailbox' ); // Inbox or another mailbox
$sizes = $imap->fetchSizes( array( 1, 2, 4 ) );
The returned array $sizes will be something like:
array( 1 => 1043,
2 => 203901,
4 => 14277
);
public fetchSizes ( array $messages ) : array(int) | ||
$messages | array | |
return | array(int) |