mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-01-02 21:12:02 +08:00
Rename ManageSieveClient to SieveClient
This commit is contained in:
parent
ff065378ab
commit
2ac376d582
5 changed files with 9 additions and 9 deletions
|
@ -111,25 +111,25 @@ $Plugin->addHook('hook.name', 'functionName');
|
|||
### sieve.before-connect
|
||||
params:
|
||||
\RainLoop\Model\Account $oAccount
|
||||
\MailSo\Sieve\ManageSieveClient $oSieveClient
|
||||
\MailSo\Sieve\SieveClient $oSieveClient
|
||||
\MailSo\Sieve\Settings $oSettings
|
||||
|
||||
### sieve.after-connect
|
||||
params:
|
||||
\RainLoop\Model\Account $oAccount
|
||||
\MailSo\Sieve\ManageSieveClient $oSieveClient
|
||||
\MailSo\Sieve\SieveClient $oSieveClient
|
||||
\MailSo\Sieve\Settings $oSettings
|
||||
|
||||
### sieve.before-login
|
||||
params:
|
||||
\RainLoop\Model\Account $oAccount
|
||||
\MailSo\Sieve\ManageSieveClient $oSieveClient
|
||||
\MailSo\Sieve\SieveClient $oSieveClient
|
||||
\MailSo\Sieve\Settings $oSettings
|
||||
|
||||
### sieve.after-login
|
||||
params:
|
||||
\RainLoop\Model\Account $oAccount
|
||||
\MailSo\Sieve\ManageSieveClient $oSieveClient
|
||||
\MailSo\Sieve\SieveClient $oSieveClient
|
||||
bool $bSuccess
|
||||
\MailSo\Sieve\Settings $oSettings
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ use MailSo\Net\Enumerations\ConnectionSecurityType;
|
|||
* @category MailSo
|
||||
* @package Sieve
|
||||
*/
|
||||
class ManageSieveClient extends \MailSo\Net\NetClient
|
||||
class SieveClient extends \MailSo\Net\NetClient
|
||||
{
|
||||
/**
|
||||
* @var bool
|
|
@ -352,7 +352,7 @@ class ActionsAdmin extends Actions
|
|||
{
|
||||
try
|
||||
{
|
||||
$oSieveClient = new \MailSo\Sieve\ManageSieveClient();
|
||||
$oSieveClient = new \MailSo\Sieve\SieveClient();
|
||||
$oSieveClient->SetLogger($this->Logger());
|
||||
$oSieveClient->SetTimeOuts($iConnectionTimeout);
|
||||
|
||||
|
|
|
@ -251,7 +251,7 @@ abstract class Account implements \JsonSerializable
|
|||
return $this->netClientLogin($oSmtpClient, $oPlugins, $oSettings);
|
||||
}
|
||||
|
||||
public function SieveConnectAndLoginHelper(\RainLoop\Plugins\Manager $oPlugins, \MailSo\Sieve\ManageSieveClient $oSieveClient, \RainLoop\Config\Application $oConfig)
|
||||
public function SieveConnectAndLoginHelper(\RainLoop\Plugins\Manager $oPlugins, \MailSo\Sieve\SieveClient $oSieveClient, \RainLoop\Config\Application $oConfig)
|
||||
{
|
||||
$oSettings = $this->Domain()->SieveSettings();
|
||||
$oSettings->Login = $this->IncLogin();
|
||||
|
|
|
@ -29,9 +29,9 @@ class SieveStorage implements FiltersInterface
|
|||
$this->oConfig = $oConfig;
|
||||
}
|
||||
|
||||
protected function getConnection(\RainLoop\Model\Account $oAccount) : ?\MailSo\Sieve\ManageSieveClient
|
||||
protected function getConnection(\RainLoop\Model\Account $oAccount) : ?\MailSo\Sieve\SieveClient
|
||||
{
|
||||
$oSieveClient = new \MailSo\Sieve\ManageSieveClient();
|
||||
$oSieveClient = new \MailSo\Sieve\SieveClient();
|
||||
$oSieveClient->SetLogger($this->oLogger);
|
||||
$oSieveClient->SetTimeOuts(10, (int) \RainLoop\Api::Config()->Get('labs', 'sieve_timeout', 10));
|
||||
return $oAccount->SieveConnectAndLoginHelper($this->oPlugins, $oSieveClient, $this->oConfig)
|
||||
|
|
Loading…
Reference in a new issue