...
|
...
|
@@ -20,6 +20,12 @@ class syncMail { |
|
|
{
|
|
|
$db = db();
|
|
|
|
|
|
if(empty($data['to_name'])){
|
|
|
$data['to_name'] = [];
|
|
|
}
|
|
|
|
|
|
$data['to_name'] = is_array($data['to_name'])?$data['to_name']:json_decode($data['to_name']);
|
|
|
|
|
|
// 是否在指定文件夹内
|
|
|
$f = $db->value(folderSql::first($data['folder_id'],'folder'));
|
|
|
$f = folderAlias($f);
|
...
|
...
|
@@ -37,7 +43,13 @@ class syncMail { |
|
|
}
|
|
|
|
|
|
if(empty($is_hot)){
|
|
|
if($f == 's' && $db->count('select count(*) from `hot_mail` where `email` = "'.$data['from'].'"')){
|
|
|
if($f=='f'){
|
|
|
$w = ['email' => array_column($data['to_name'],'email')];
|
|
|
}else{
|
|
|
$w = ['email' =>$data['from']];
|
|
|
}
|
|
|
|
|
|
if($db->count('select count(*) from `hot_mail` where '.dbWhere($w))){
|
|
|
$is_hot = 1;
|
|
|
}
|
|
|
}
|
...
|
...
|
|