From dba3c1b7151929a090d9239ea0026d31436c02d0 Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 11 Jul 2017 14:03:23 +0200 Subject: [PATCH] Fixed managesieve plain login --- .../v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php b/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php index 5b741d58e..92f889e9a 100644 --- a/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php +++ b/rainloop/v/0.0.0/app/libraries/MailSo/Sieve/ManageSieveClient.php @@ -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);