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); } }