PHPDaemon\Clients\IMAP\Connection::getSize PHP Метод

getSize() публичный Метод

get a list of messages with number and size
public getSize ( $cb, integer $uid = null )
$uid integer number of message
    public function getSize($cb, $uid = null)
    {
        $this->onResponse->push($cb);
        if ($uid) {
            $this->fetch('RFC822.SIZE', $uid, null, true, self::TAG_SIZE);
        } else {
            $this->fetch('RFC822.SIZE', 1, INF, true, self::TAG_SIZE);
        }
    }