• Модуль: mail
  • Путь к файлу: ~/bitrix/modules/mail/lib/helper.php
  • Класс: BitrixMailHelper
  • Вызов: Helper::getImapUnseen
static function getImapUnseen($mailbox, $dirPath = 'inbox', &$error = [], &$errors = null, $startInternalDate = null)
{
	$error  = null;
	$errors = null;

	$client = static::createClient($mailbox);

	$result = $client->getUnseen($dirPath, $error, $startInternalDate);
	$errors = $client->getErrors();

	return $result;
}