[2022-09-28 04:04:11] online.INFO: read line
[2022-09-28 04:09:11] online.INFO: Exception:empty response
[2022-09-28 04:09:11] online.INFO: read line
[2022-09-28 04:14:11] online.INFO: Exception:empty response
[2022-09-28 04:14:12] online.INFO: read line
[2022-09-28 04:19:12] online.INFO: Exception:empty response
[2022-09-28 04:19:12] online.INFO: read line
[2022-09-28 04:24:12] online.INFO: Exception:empty response
[2022-09-28 04:24:12] online.INFO: read line
=======================================
No log output after running here,But the process is running..
It looks like the program keeps getting stuck in the nextLine() function..
2.When there are multiple emails in the inbox, the content of the read email is empty
$messages = $folder->messages()->all()->get();
/** @var \Webklex\PHPIMAP\Message $message */
foreach($messages as $message){
echo $message->getSubject().'<br />'; //Subject acquisition is correct
echo $message->getHTMLBody();//return empty ,can't get HTML Body
if($message->move('INBOX.read') == true){
echo 'Message has ben moved';
}else{
echo 'Message could not be moved';
}
}
1.Still can't read emails after running for a while
It looks like the program keeps getting stuck in the nextLine() function..
2.When there are multiple emails in the inbox, the content of the read email is empty