...
|
...
|
@@ -116,6 +116,9 @@ class fob_hot_ai_mail_auto_reply { |
|
|
if($this->db->cache(3600)->value(\Model\folderSql::has(['id'=>$data['folder_id'],'origin_folder'=>'INBOX']))){
|
|
|
_echo('处理 '.$data['id']);
|
|
|
$email = $this->db->throw()->cache(3600)->first(\Model\emailSql::first($data['email_id']));
|
|
|
|
|
|
// 验证是否是ai邮箱
|
|
|
if($this->db->count(sprintf("select count(*) from `hot_mail` where `email` = '%s'",$email['email']))){
|
|
|
// 标记已读
|
|
|
$mailInstance = \Lib\Imap\ImapPool::get((new \Lib\Imap\ImapConfig($email)));
|
|
|
if($mailInstance->login()){
|
...
|
...
|
@@ -138,7 +141,7 @@ class fob_hot_ai_mail_auto_reply { |
|
|
}else{
|
|
|
_echo('来回超过5次就不回了 '.$data['id']);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}
|
...
|
...
|
|