...
|
...
|
@@ -176,18 +176,24 @@ class MailListV2 extends Base { |
|
|
// 模糊标题搜索
|
|
|
$subject = app()->request('subject');
|
|
|
if($subject){
|
|
|
$sql.=' and (';
|
|
|
$subject = is_array($subject) ? $subject : [$subject];
|
|
|
foreach ($subject as $sub){
|
|
|
$sql.=' and `subject` '.(empty($is_auto_inbox)?' not ':'').'like "%%'.addslashes($sub).'%%"';
|
|
|
$sql.=' `subject` '.(empty($is_auto_inbox)?' not ':'').'like "%%'.addslashes($sub).'%%" or ';
|
|
|
}
|
|
|
$sql = rtrim($sql,'or ');
|
|
|
$sql.=')';
|
|
|
}
|
|
|
// 不在此邮箱中的
|
|
|
$from_not_in_like = app()->request('from_not_in_like');
|
|
|
if($from_not_in_like){
|
|
|
$sql.=' and (';
|
|
|
$from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like];
|
|
|
foreach ($from_not_in_like as $sub){
|
|
|
$sql.=' and `from` '.(empty($is_auto_inbox)?' not ':'').'like "%%'.addslashes($sub).'%%"';
|
|
|
$sql.='`from` '.(empty($is_auto_inbox)?' not ':'').'like "%%'.addslashes($sub).'%%" or ';
|
|
|
}
|
|
|
$sql = rtrim($sql,'or ');
|
|
|
$sql.=')';
|
|
|
}
|
|
|
/************ 2024-09-02 *************/
|
|
|
|
...
|
...
|
|