...
|
...
|
@@ -136,6 +136,10 @@ class MailListV2 extends Base { |
|
|
}elseif ($folder=='预热发件箱'){
|
|
|
$folder = '发件箱';
|
|
|
$where['is_hots'] = 1;
|
|
|
} elseif ($folder=='自动回复收件箱'){
|
|
|
$is_auto_inbox = 1;
|
|
|
$folder = '收件箱';
|
|
|
$where['is_hots'] = 0;
|
|
|
}
|
|
|
|
|
|
$seen = app()->request('seen',-1,'intval');
|
...
|
...
|
@@ -168,6 +172,26 @@ class MailListV2 extends Base { |
|
|
|
|
|
$sql = "select %s from `lists` where ".dbWhere($where);
|
|
|
|
|
|
/************ 2024-09-02 *************/
|
|
|
// 模糊标题搜索
|
|
|
$subject = app()->request('subject');
|
|
|
if($subject){
|
|
|
$subject = is_array($subject) ? $subject : [$subject];
|
|
|
foreach ($subject as $sub){
|
|
|
$sql.=' and `subject` .'.(empty($is_auto_inbox)?' not ':'').'like "%'.addslashes($sub).'%"';
|
|
|
}
|
|
|
}
|
|
|
// 不在此邮箱中的
|
|
|
$subject = app()->request('from_not_in_like');
|
|
|
if($subject){
|
|
|
$subject = is_array($subject) ? $subject : [$subject];
|
|
|
foreach ($subject as $sub){
|
|
|
$sql.=' and `from` .'.(empty($is_auto_inbox)?' not ':'').'like "%'.addslashes($sub).'%"';
|
|
|
}
|
|
|
}
|
|
|
/************ 2024-09-02 *************/
|
|
|
|
|
|
|
|
|
// 查询列表数据
|
|
|
$lists = db()->all(sprintf($sql,$filed)." order by `udate` desc limit {$limit} offset ".(($page-1)*$limit));
|
|
|
|
...
|
...
|
|