...
|
...
|
@@ -101,6 +101,7 @@ class fob_ai_mail_auto_reply { |
|
|
// 配置
|
|
|
$replySetting = $this->getAutoReplySettingJunk($postid,$email['email']);
|
|
|
if($replySetting){
|
|
|
$ok = true;
|
|
|
$email['password'] = base64_decode($email['password']);
|
|
|
$email['host'] = $email['imap'];
|
|
|
$mailInstance = \Lib\Imap\ImapPool::get((new \Lib\Imap\ImapConfig($email)));
|
...
|
...
|
@@ -108,8 +109,11 @@ class fob_ai_mail_auto_reply { |
|
|
if(!$msg->move('INBOX')){
|
|
|
if(!$msg->copy('INBOX')){
|
|
|
@file_put_contents(__DIR__."/move_log.log",'移动邮件失败'.json_encode($data,JSON_UNESCAPED_UNICODE)."\n",FILE_APPEND);
|
|
|
$ok = false;
|
|
|
_echo("垃圾邮件移动失败 ".$data['id'].' '.$data['subject']);
|
|
|
}
|
|
|
}
|
|
|
if($ok) _echo("垃圾邮件移动成功 ".$data['id'].' '.$data['subject']);
|
|
|
$mailInstance = null;
|
|
|
}
|
|
|
|
...
|
...
|
|