作者 邓超

x

... ... @@ -321,7 +321,7 @@ class SyncMail {
*/
protected function saveMail(int $folder_id, array $lists, bool $isBody=false){
foreach ($lists as $item){
try {
$data = [
'uid' => $item->uid,
'subject' => mb_substr($item->header->getSubject(),0,1000),// 控制下,有的蛋疼,整tm多长
... ... @@ -344,6 +344,11 @@ class SyncMail {
'email_id' => $this->emailId(),
'is_file' => $item->isAttachment() ? 1: 0 //是否附件
];
}catch (\Throwable $e){
logs([$e->getMessage(),$folder_id,$this->emailId(),$item->uid]);
continue;
}
$data['from'] = mb_substr($data['from'],0,120);
... ...