作者 邓超

x

@@ -387,9 +387,11 @@ class Body { @@ -387,9 +387,11 @@ class Body {
387 if (!empty($result[0])){ 387 if (!empty($result[0])){
388 $data['content-id'] = explode(' ',trim($result[0])); 388 $data['content-id'] = explode(' ',trim($result[0]));
389 $data['content-id'] = $data['content-id'][1]; 389 $data['content-id'] = $data['content-id'][1];
390 - $data['content-id'] = @trim($data['content-id']);  
391 - $data['content-id'] = @trim($data['content-id'],'>');  
392 - $data['content-id'] = @trim($data['content-id'],'<'); 390 + if($data['content-id']){
  391 + $data['content-id'] = @trim($data['content-id']);
  392 + $data['content-id'] = @trim($data['content-id'],'>');
  393 + $data['content-id'] = @trim($data['content-id'],'<');
  394 + }
393 395
394 $item['body'] = str_replace($result[0],'',$item['body']); 396 $item['body'] = str_replace($result[0],'',$item['body']);
395 } 397 }
@@ -316,7 +316,7 @@ class Mail { @@ -316,7 +316,7 @@ class Mail {
316 316
317 $data = [ 317 $data = [
318 'uid' => $result['UID'], 318 'uid' => $result['UID'],
319 - 'subject' => $header['subject'], 319 + 'subject' => $header['subject']??($header['Subject']??($header['SUBJECT']??'')),
320 'cc' => $cc, 320 'cc' => $cc,
321 'bcc' => $bcc, 321 'bcc' => $bcc,
322 'from' => $header['from'][0]['email']??'', 322 'from' => $header['from'][0]['email']??'',