• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/imap.php
  • Класс: BitrixMailImap
  • Вызов: Imap::readResponse
protected function readResponse()
{
	do
	{
		$line = $this->readLine();
		if ($line === false)
			return false;

		if (mb_strpos($line, '*') === 0)
			$this->sessUntagged[] = $line;
	}
	while (mb_strpos($line, '*') === 0);

	if ('select' == $this->sessState)
	{
		$regex = '/^ * x20 ( d+ ) x20 EXISTS /ix';
		foreach ($this->getUntagged($regex) as $item)
		{
			$this->sessMailbox['exists'] = $item[1][1];
		}
	}

	return $line;
}