切换导航条
此项目
正在载入...
登录
周海龙
/
mail-serve
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
邓超
8 months ago
提交
114cf62e959959e33e237a445db0a297c6c4ba76
1 个父辈
d04568eb
x
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
21 行增加
和
20 行删除
controller/fob_ai/MailListV2.php
controller/fob_ai/MailListV2.php
查看文件 @
114cf62
...
...
@@ -191,31 +191,32 @@ 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
$k
=>
$sub
){
$subject
[
$k
]
=
'`subject` '
.
(
empty
(
$is_auto_inbox
)
?
' not '
:
''
)
.
'like "'
.
$this
->
getLikeStr
(
$sub
)
.
'"'
;
if
(
$folder
==
'收件箱'
)
{
// 模糊标题搜索
$subject
=
app
()
->
request
(
'subject'
);
if
(
$subject
)
{
$subject
=
is_array
(
$subject
)
?
$subject
:
[
$subject
];
foreach
(
$subject
as
$k
=>
$sub
)
{
$subject
[
$k
]
=
'`subject` '
.
(
empty
(
$is_auto_inbox
)
?
' not '
:
''
)
.
'like "'
.
$this
->
getLikeStr
(
$sub
)
.
'"'
;
}
}
}
// 不在此邮箱中的
$from_not_in_like
=
app
()
->
request
(
'from_not_in_like'
);
if
(
$from_not_in_like
){
$from_not_in_like
=
is_array
(
$from_not_in_like
)
?
$from_not_in_like
:
[
$from_not_in_like
];
foreach
(
$from_not_in_like
as
$k
=>
$sub
){
$from_not_in_like
[
$k
]
=
'`from` '
.
(
empty
(
$is_auto_inbox
)
?
' not '
:
''
)
.
'like "'
.
$this
->
getLikeStr
(
$sub
)
.
'"'
;
// 不在此邮箱中的
$from_not_in_like
=
app
()
->
request
(
'from_not_in_like'
);
if
(
$from_not_in_like
)
{
$from_not_in_like
=
is_array
(
$from_not_in_like
)
?
$from_not_in_like
:
[
$from_not_in_like
];
foreach
(
$from_not_in_like
as
$k
=>
$sub
)
{
$from_not_in_like
[
$k
]
=
'`from` '
.
(
empty
(
$is_auto_inbox
)
?
' not '
:
''
)
.
'like "'
.
$this
->
getLikeStr
(
$sub
)
.
'"'
;
}
}
}
if
(
$subject
||
$from_not_in_like
){
$sql
.=
' and ('
;
if
(
$subject
)
$sql
.=
implode
(
empty
(
$is_auto_inbox
)
?
' and '
:
' or '
,
$subject
);
if
(
$from_not_in_like
)
$sql
.=
' and ('
.
implode
(
empty
(
$is_auto_inbox
)
?
' and '
:
' or '
,
$from_not_in_like
)
.
')'
;
$sql
.=
')'
;
if
(
$subject
||
$from_not_in_like
)
{
$sql
.=
' and ('
;
if
(
$subject
)
$sql
.=
implode
(
empty
(
$is_auto_inbox
)
?
' and '
:
' or '
,
$subject
);
if
(
$from_not_in_like
)
$sql
.=
' and ('
.
implode
(
empty
(
$is_auto_inbox
)
?
' and '
:
' or '
,
$from_not_in_like
)
.
')'
;
$sql
.=
')'
;
}
}
/************ 2024-09-02 *************/
// 查询列表数据
...
...
请
注册
或
登录
后发表评论