作者 邓超

x

... ... @@ -109,6 +109,8 @@ class fob_ai_mail_auto_reply {
$mailInstance = \Lib\Imap\ImapPool::get((new \Lib\Imap\ImapConfig($email)));
if($mailInstance->login()){
$msg = $mailInstance->folder($folder['origin_folder'])->msg()->uid($data['uid']);
// 标记为已读
$msg->seen();
if(!$msg->move('INBOX')){
if(!$msg->copy('INBOX')){
@file_put_contents(__DIR__."/move_log.log",'移动邮件失败'.json_encode($data,JSON_UNESCAPED_UNICODE)."\n",FILE_APPEND);
... ...