作者 邓超

x

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