作者 邓超

x

... ... @@ -58,6 +58,8 @@ class syncMail {
$this->auto_mail($id,$data);
$this->black_mail($id,$data);
// 邮件过滤 这些邮箱都是系统邮箱
// if(!$this->checkEmail($data['from']) && !$this->checkSubject($data['subject'])){
//只提醒re
... ... @@ -148,6 +150,13 @@ class syncMail {
}
/**
* 自动回复邮箱
* @param $id
* @param $data
* @author:dc
* @time 2024/9/12 15:29
*/
private function auto_mail($id,$data){
$filter = '2 Automatic reply
2 Delivery
... ... @@ -201,5 +210,24 @@ class syncMail {
}
/**
* 黑名单邮箱,直接delete
* @param $id
* @param $data
* @author:dc
* @time 2024/9/12 15:29
*/
private function black_mail($id,$data){
if(!empty($data['from'])){
if(!$this->db->count("select count(*) from `ai_black_email` where ".dbWhere(['email'=>$data['from']]))){
$this->db->update(listsSql::$table,['deleted'=>1],dbWhere(['id'=>$id]));
}
}
}
}
\ No newline at end of file
... ...