- Модуль: mail
- Путь к файлу: ~/bitrix/modules/mail/lib/imap.php
- Класс: BitrixMailImap
- Вызов: Imap::store
private function store($ids, $flags, &$error, $isUid = true, $isRemoveFlags = false)
{
$command = sprintf('STORE %s ', $this->prepareIdsParam($ids));
$command .= $isRemoveFlags ? '-' : '+';
$command = $command . sprintf('FLAGS (%s)', join(' ', $flags));
if ($isUid)
{
$command = 'UID ' . $command;
}
return $this->executeCommand($command, $error);
}