mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-05 07:27:04 +03:00
Hide X-Mailer header by default
Remove iconv support Cleanup MailSo
This commit is contained in:
parent
234e5a5014
commit
9aa0cf92a9
12 changed files with 94 additions and 376 deletions
|
|
@ -21,15 +21,9 @@ class Api
|
|||
static $bOne = null;
|
||||
if (null === $bOne)
|
||||
{
|
||||
$bOne = \class_exists('MailSo\Version');
|
||||
if ($bOne)
|
||||
{
|
||||
static::SetupDefaultMailSoConfig();
|
||||
|
||||
$bOne = static::RunResult();
|
||||
}
|
||||
static::SetupDefaultMailSoConfig();
|
||||
$bOne = static::RunResult();
|
||||
}
|
||||
|
||||
return $bOne;
|
||||
}
|
||||
|
||||
|
|
@ -64,12 +58,6 @@ class Api
|
|||
{
|
||||
if (\class_exists('MailSo\Config'))
|
||||
{
|
||||
if (static::Config()->Get('labs', 'disable_iconv_if_mbstring_supported', false) &&
|
||||
\MailSo\Base\Utils::IsMbStringSupported() && \MailSo\Config::$MBSTRING)
|
||||
{
|
||||
\MailSo\Config::$ICONV = false;
|
||||
}
|
||||
|
||||
\MailSo\Config::$MessageListFastSimpleSearch =
|
||||
!!static::Config()->Get('labs', 'imap_message_list_fast_simple_search', true);
|
||||
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ class Application extends \RainLoop\Config\AbstractConfig
|
|||
'allow_admin_panel' => array(true, 'Access settings'),
|
||||
'allow_two_factor_auth' => array(false),
|
||||
'force_two_factor_auth' => array(false),
|
||||
'hide_x_mailer_header' => array(false),
|
||||
'hide_x_mailer_header' => array(true),
|
||||
'admin_panel_host' => array(''),
|
||||
'admin_panel_key' => array('admin'),
|
||||
'content_security_policy' => array(''),
|
||||
|
|
@ -342,7 +342,6 @@ Enables caching in the system'),
|
|||
'date_from_headers' => array(true),
|
||||
'autocreate_system_folders' => array(true),
|
||||
'allow_message_append' => array(false),
|
||||
'disable_iconv_if_mbstring_supported' => array(false),
|
||||
'login_fault_delay' => array(1),
|
||||
'log_ajax_response_write_limit' => array(300),
|
||||
'allow_html_editor_source_button' => array(false),
|
||||
|
|
|
|||
|
|
@ -72,12 +72,7 @@ class Service
|
|||
static $bOne = null;
|
||||
if (null === $bOne)
|
||||
{
|
||||
$oService = null;
|
||||
if (\class_exists('MailSo\Version'))
|
||||
{
|
||||
$oService = new self();
|
||||
}
|
||||
|
||||
$oService = new self();
|
||||
$bOne = $oService->RunResult();
|
||||
}
|
||||
|
||||
|
|
@ -86,11 +81,6 @@ class Service
|
|||
|
||||
private function localHandle() : self
|
||||
{
|
||||
if (!\class_exists('MailSo\Version'))
|
||||
{
|
||||
return $this;
|
||||
}
|
||||
|
||||
$sResult = '';
|
||||
$bCached = false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue