Fixed managesieve plain login

This commit is contained in:
M66B 2017-07-11 14:03:23 +02:00
parent a72b95a868
commit dba3c1b715

View file

@ -166,8 +166,7 @@ class ManageSieveClient extends \MailSo\Net\NetClient
{
$sAuth = \base64_encode($sLoginAuthKey."\0".$sLogin."\0".$sPassword);
$this->sendRequest('AUTHENTICATE "PLAIN" {'.\strlen($sAuth).'+}');
$this->sendRequest($sAuth);
$this->sendRequest('AUTHENTICATE "PLAIN" "'.$sAuth.'"');
$mResponse = $this->parseResponse();
$this->validateResponse($mResponse);