/** * get a list of messages with number and size * * @param int $id number of message * @return int|array size of given message of list with all messages as array(num => size) * @throws \Zend\Mail\Protocol\Exception\ExceptionInterface */ public function getSize($id = 0) { $id = $id ? $id : null; return $this->protocol->getList($id); }