/** * @param string $sFolderName * @param array $aUids * * @return \MailSo\Mail\MessageCollection * * @throws \MailSo\Base\Exceptions\InvalidArgumentException * @throws \MailSo\Net\Exceptions\Exception * @throws \MailSo\Imap\Exceptions\Exception */ public function MessageListSimple($sFolderName, $aUids) { if (0 === \strlen($sFolderName) || !\MailSo\Base\Validator::NotEmptyArray($aUids)) { throw new \MailSo\Base\Exceptions\InvalidArgumentException(); } $this->oImapClient->FolderExamine($sFolderName); $oMessageCollection = \MailSo\Mail\MessageCollection::NewInstance(); $oMessageCollection->FolderName = $sFolderName; $this->MessageListByRequestIndexOrUids($oMessageCollection, $aUids, true, true); return $oMessageCollection->GetAsArray(); }