mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Resolve issue #5
This commit is contained in:
parent
dc6b7e250e
commit
5009adfb60
20 changed files with 32 additions and 32 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class AddXOriginatingIpHeaderPlugin extends \RainLoop\Plugins\AbstractPlugin
|
class AddXOriginatingIpHeaderPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.build-message', 'FilterBuildMessage');
|
$this->addHook('filter.build-message', 'FilterBuildMessage');
|
||||||
}
|
}
|
||||||
|
|
@ -27,7 +27,7 @@ class AddXOriginatingIpHeaderPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('check_proxy')
|
\RainLoop\Plugins\Property::NewInstance('check_proxy')
|
||||||
|
|
@ -37,4 +37,4 @@ class AddXOriginatingIpHeaderPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
->SetDefaultValue(false)
|
->SetDefaultValue(false)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ class AutoDomainGrabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
private $imap_prefix = "mail.";
|
private $imap_prefix = "mail.";
|
||||||
private $smtp_prefix = "mail.";
|
private $smtp_prefix = "mail.";
|
||||||
|
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.smtp-credentials', 'FilterSmtpCredentials');
|
$this->addHook('filter.smtp-credentials', 'FilterSmtpCredentials');
|
||||||
$this->addHook('filter.imap-credentials', 'FilterImapCredentials');
|
$this->addHook('filter.imap-credentials', 'FilterImapCredentials');
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class BlackListPlugin extends \RainLoop\Plugins\AbstractPlugin
|
class BlackListPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.login-credentials', 'FilterLoginCredentials');
|
$this->addHook('filter.login-credentials', 'FilterLoginCredentials');
|
||||||
}
|
}
|
||||||
|
|
@ -32,7 +32,7 @@ class BlackListPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('auth_error')->SetLabel('Auth Error')
|
\RainLoop\Plugins\Property::NewInstance('auth_error')->SetLabel('Auth Error')
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class ChangeSmtpEhloMessagePlugin extends \RainLoop\Plugins\AbstractPlugin
|
class ChangeSmtpEhloMessagePlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.smtp-credentials', 'FilterSmtpCredentials');
|
$this->addHook('filter.smtp-credentials', 'FilterSmtpCredentials');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class ContactGroupExcelPastePlugin extends \RainLoop\Plugins\AbstractPlugin
|
class ContactGroupExcelPastePlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addJs('js/excel_contact_group.js');
|
$this->addJs('js/excel_contact_group.js');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ class ContactsExampleSuggestions implements \RainLoop\Providers\Suggestions\ISug
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function Process($oAccount, $sQuery, $iLimit = 20)
|
public function Process(RainLoop\Model\Account $oAccount, string $sQuery, int $iLimit = 20): array
|
||||||
{
|
{
|
||||||
$aResult = array(
|
$aResult = array(
|
||||||
array($oAccount->Email(), ''),
|
array($oAccount->Email(), ''),
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class ContactsSuggestionsExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
|
class ContactsSuggestionsExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('main.fabrica', 'MainFabrica');
|
$this->addHook('main.fabrica', 'MainFabrica');
|
||||||
}
|
}
|
||||||
|
|
@ -27,4 +27,4 @@ class ContactsSuggestionsExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ class CustomAdminSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->UseLangs(true); // start use langs folder
|
$this->UseLangs(true); // start use langs folder
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class CustomAuthExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
|
class CustomAuthExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.login-credentials', 'FilterLoginСredentials');
|
$this->addHook('filter.login-credentials', 'FilterLoginСredentials');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class CustomLoginMappingPlugin extends \RainLoop\Plugins\AbstractPlugin
|
class CustomLoginMappingPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.login-credentials', 'FilterLoginСredentials');
|
$this->addHook('filter.login-credentials', 'FilterLoginСredentials');
|
||||||
}
|
}
|
||||||
|
|
@ -41,7 +41,7 @@ class CustomLoginMappingPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('mapping')->SetLabel('Mapping')
|
\RainLoop\Plugins\Property::NewInstance('mapping')->SetLabel('Mapping')
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ class CustomSettingsTabPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->UseLangs(true); // start use langs folder
|
$this->UseLangs(true); // start use langs folder
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
*/
|
*/
|
||||||
private $sArchiveFolder = '';
|
private $sArchiveFolder = '';
|
||||||
|
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->sSentFolder = \trim($this->Config()->Get('plugin', 'sent_folder', ''));
|
$this->sSentFolder = \trim($this->Config()->Get('plugin', 'sent_folder', ''));
|
||||||
$this->sDraftsFolder = \trim($this->Config()->Get('plugin', 'drafts_folder', ''));
|
$this->sDraftsFolder = \trim($this->Config()->Get('plugin', 'drafts_folder', ''));
|
||||||
|
|
@ -121,7 +121,7 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('sent_folder')->SetLabel('Sent')
|
\RainLoop\Plugins\Property::NewInstance('sent_folder')->SetLabel('Sent')
|
||||||
|
|
@ -136,4 +136,4 @@ class CustomSystemFoldersPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
->SetDefaultValue('Archive')
|
->SetDefaultValue('Archive')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ class DemoAccountPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.app-data', 'FilterAppData');
|
$this->addHook('filter.app-data', 'FilterAppData');
|
||||||
$this->addHook('filter.action-params', 'FilterActionParams');
|
$this->addHook('filter.action-params', 'FilterActionParams');
|
||||||
|
|
@ -17,7 +17,7 @@ class DemoAccountPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
protected function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('email')->SetLabel('Demo Email')
|
\RainLoop\Plugins\Property::NewInstance('email')->SetLabel('Demo Email')
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ class ParseExcelListPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addJs('js/parse_excel_list.js'); // add js file
|
$this->addJs('js/parse_excel_list.js'); // add js file
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ class LdapContactsSuggestions implements \RainLoop\Providers\Suggestions\ISugges
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function Process($oAccount, $sQuery, $iLimit = 20)
|
public function Process(RainLoop\Model\Account $oAccount, string $sQuery, int $iLimit = 20): array
|
||||||
{
|
{
|
||||||
$sQuery = \trim($sQuery);
|
$sQuery = \trim($sQuery);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class LdapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
class LdapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('main.fabrica', 'MainFabrica');
|
$this->addHook('main.fabrica', 'MainFabrica');
|
||||||
}
|
}
|
||||||
|
|
@ -10,7 +10,7 @@ class LdapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public function Supported()
|
public function Supported() : string
|
||||||
{
|
{
|
||||||
if (!\function_exists('ldap_connect'))
|
if (!\function_exists('ldap_connect'))
|
||||||
{
|
{
|
||||||
|
|
@ -62,7 +62,7 @@ class LdapContactsSuggestionsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('hostname')->SetLabel('LDAP hostname')
|
\RainLoop\Plugins\Property::NewInstance('hostname')->SetLabel('LDAP hostname')
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class OverrideSmtpCredentialsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
class OverrideSmtpCredentialsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.smtp-credentials', 'FilterSmtpCredentials');
|
$this->addHook('filter.smtp-credentials', 'FilterSmtpCredentials');
|
||||||
}
|
}
|
||||||
|
|
@ -49,7 +49,7 @@ class OverrideSmtpCredentialsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('smtp_host')->SetLabel('SMTP Host')
|
\RainLoop\Plugins\Property::NewInstance('smtp_host')->SetLabel('SMTP Host')
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class ProxyauthLoginExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
|
class ProxyauthLoginExamplePlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('event.login-post-login-provide', 'EventLoginPostLoginProvide');
|
$this->addHook('event.login-post-login-provide', 'EventLoginPostLoginProvide');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class SnowfallOnLoginScreenPlugin extends \RainLoop\Plugins\AbstractPlugin
|
class SnowfallOnLoginScreenPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addJs('js/snowfall.js');
|
$this->addJs('js/snowfall.js');
|
||||||
$this->addJs('js/include.js');
|
$this->addJs('js/include.js');
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
class WhiteListPlugin extends \RainLoop\Plugins\AbstractPlugin
|
class WhiteListPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
{
|
{
|
||||||
public function Init()
|
public function Init() : void
|
||||||
{
|
{
|
||||||
$this->addHook('filter.login-credentials', 'FilterLoginCredentials');
|
$this->addHook('filter.login-credentials', 'FilterLoginCredentials');
|
||||||
}
|
}
|
||||||
|
|
@ -32,7 +32,7 @@ class WhiteListPlugin extends \RainLoop\Plugins\AbstractPlugin
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function configMapping()
|
protected function configMapping() : array
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
\RainLoop\Plugins\Property::NewInstance('auth_error')->SetLabel('Auth Error')
|
\RainLoop\Plugins\Property::NewInstance('auth_error')->SetLabel('Auth Error')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue