Added "[labs] imap_show_login_alert" setting

Small fixes
This commit is contained in:
RainLoop Team 2015-01-08 18:00:03 +04:00
parent f749d77fff
commit 43d1794423
81 changed files with 132 additions and 48 deletions

View file

@ -16,4 +16,22 @@ namespace MailSo\Imap\Exceptions;
* @package Imap
* @subpackage Exceptions
*/
class NegativeResponseException extends \MailSo\Imap\Exceptions\ResponseException {}
class NegativeResponseException extends \MailSo\Imap\Exceptions\ResponseException
{
/**
* @return string
*/
public function getAlertFromStatus()
{
$sResult = '';
$oResponse = $this->GetLastResponse();
if ($oResponse && $oResponse->IsStatusResponse && !empty($oResponse->HumanReadable) &&
isset($oResponse->OptionalResponse[0]) && 'ALERT' === $oResponse->OptionalResponse[0])
{
$sResult = $oResponse->HumanReadable;
}
return $sResult;
}
}