mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Added "imap_message_list_fast_simple_search" setting
This commit is contained in:
parent
5a84370077
commit
c5bffef9cd
4 changed files with 26 additions and 9 deletions
|
|
@ -23,6 +23,11 @@ class Config
|
||||||
*/
|
*/
|
||||||
public static $FixIconvByMbstring = true;
|
public static $FixIconvByMbstring = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int
|
||||||
|
*/
|
||||||
|
public static $MessageListFastSimpleSearch = true;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1084,15 +1084,23 @@ class MailClient
|
||||||
{
|
{
|
||||||
$sValue = $this->escapeSearchString($aLines['OTHER']);
|
$sValue = $this->escapeSearchString($aLines['OTHER']);
|
||||||
|
|
||||||
$aCriteriasResult[] = 'OR OR OR';
|
if (\MailSo\Config::$MessageListFastSimpleSearch)
|
||||||
$aCriteriasResult[] = 'FROM';
|
{
|
||||||
$aCriteriasResult[] = $sValue;
|
$aCriteriasResult[] = 'OR OR OR';
|
||||||
$aCriteriasResult[] = 'TO';
|
$aCriteriasResult[] = 'FROM';
|
||||||
$aCriteriasResult[] = $sValue;
|
$aCriteriasResult[] = $sValue;
|
||||||
$aCriteriasResult[] = 'CC';
|
$aCriteriasResult[] = 'TO';
|
||||||
$aCriteriasResult[] = $sValue;
|
$aCriteriasResult[] = $sValue;
|
||||||
$aCriteriasResult[] = 'SUBJECT';
|
$aCriteriasResult[] = 'CC';
|
||||||
$aCriteriasResult[] = $sValue;
|
$aCriteriasResult[] = $sValue;
|
||||||
|
$aCriteriasResult[] = 'SUBJECT';
|
||||||
|
$aCriteriasResult[] = $sValue;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$aCriteriasResult[] = 'TEXT';
|
||||||
|
$aCriteriasResult[] = $sValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,9 @@ class Api
|
||||||
\MailSo\Config::$ICONV = false;
|
\MailSo\Config::$ICONV = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\MailSo\Config::$MessageListFastSimpleSearch =
|
||||||
|
!!\RainLoop\Api::Config()->Get('labs', 'imap_message_list_fast_simple_search', true);
|
||||||
|
|
||||||
\MailSo\Config::$MessageListCountLimitTrigger =
|
\MailSo\Config::$MessageListCountLimitTrigger =
|
||||||
(int) \RainLoop\Api::Config()->Get('labs', 'imap_message_list_count_limit_trigger', 0);
|
(int) \RainLoop\Api::Config()->Get('labs', 'imap_message_list_count_limit_trigger', 0);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -240,6 +240,7 @@ Enables caching in the system'),
|
||||||
'imap_forwarded_flag' => array('$Forwarded'),
|
'imap_forwarded_flag' => array('$Forwarded'),
|
||||||
'imap_read_receipt_flag' => array('$ReadReceipt'),
|
'imap_read_receipt_flag' => array('$ReadReceipt'),
|
||||||
'imap_body_text_limit' => array(555000),
|
'imap_body_text_limit' => array(555000),
|
||||||
|
'imap_message_list_fast_simple_search' => array(true),
|
||||||
'imap_message_list_hide_deleted_messages' => array(true),
|
'imap_message_list_hide_deleted_messages' => array(true),
|
||||||
'imap_message_list_count_limit_trigger' => array(0),
|
'imap_message_list_count_limit_trigger' => array(0),
|
||||||
'imap_message_list_date_filter' => array(0),
|
'imap_message_list_date_filter' => array(0),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue