Hide X-Mailer header by default

Remove iconv support
Cleanup MailSo
This commit is contained in:
djmaze 2020-03-11 19:36:43 +01:00
parent 234e5a5014
commit 9aa0cf92a9
12 changed files with 94 additions and 376 deletions

View file

@ -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);