• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/imap.php
  • Класс: BitrixMailImap
  • Вызов: Imap::executeCommand
protected function executeCommand($command, &$error)
{
	$error = null;
	$response = false;

	$chunks = explode("x00", sprintf('%s %s', $this->getTag(true), $command));

	$k = count($chunks);
	foreach ($chunks as $chunk)
	{
		$k--;

		$response = $this->exchange($chunk, $error);

		if ($k > 0 && mb_strpos($response, '+') !== 0)
			break;
	}

	return $response;
}