作者 邓超

x

... ... @@ -85,10 +85,16 @@ class AutoMail {
if(in_array($item['folder_id'],$this->fids)){
// 是否在黑名单中
if(in_array($item['from'],$this->black_emails)){
if (!isset($this->filter[$item['email_id']])){
// 找到邮箱
$e = $this->db->value(listsSql::first(dbWhere(['id'=>$item['email_id']]),'email'));
// 是否是ai邮件
if($this->db->count("select count(*) from `hot_mail` where ".dbWhere([
'email'=> $this->db->value(listsSql::first(dbWhere(['id'=>$item['email_id']]),'email'))
]))){
$this->filter[$item['email_id']] =
$this->db->count("select count(*) from `hot_mail` where ".dbWhere(['email'=> $e]));
}
// 是否是ai邮件
if($this->filter[$item['email_id']]){
echo '删除 '.$item['id'].'===>'.$this->db->update(listsSql::$table,['deleted'=>1],dbWhere(['id'=>$item['id']]));
... ...