| 
...
 | 
...
 | 
@@ -73,7 +73,7 @@ class Body { | 
| 
 | 
 | 
         //有一些服务商会把header头一起返回,header里面包含了这个符号,
 | 
| 
 | 
 | 
         //如果不加\r\n 就会导致 切割异常
 | 
| 
 | 
 | 
         $items = explode("\r\n".$boundary,
 | 
| 
 | 
 | 
             str_replace(['--'.$boundary.'--', $boundary.'--','--'.$boundary],"\r\n".$boundary,"\r\n".$body)
 | 
| 
 | 
 | 
             str_replace(['--'.$boundary.'--', $boundary.'--','--'.$boundary],$boundary,"\r\n".$body)
 | 
| 
 | 
 | 
         );
 | 
| 
 | 
 | 
         // qq的有邮箱有毛病,标记是乱的
 | 
| 
 | 
 | 
         if(count($items)==1 && preg_match("/^\*\s\d+\sFETCH\s\(/",$body)){
 | 
| 
...
 | 
...
 | 
@@ -168,8 +168,7 @@ class Body { | 
| 
 | 
 | 
      * @time 2024/9/21 9:51
 | 
| 
 | 
 | 
      */
 | 
| 
 | 
 | 
     protected function parseItem(string $body) {
 | 
| 
 | 
 | 
         $body = str_replace("\n\n","\r\n\r\n",trim($body));
 | 
| 
 | 
 | 
         list($mime_header,$text) = explode("\r\n\r\n",($body)."\r\n\r\n",2);
 | 
| 
 | 
 | 
         list($mime_header,$text) = explode("\r\n\r\n",trim($body)."\r\n\r\n",2);
 | 
| 
 | 
 | 
         $text = trim($text);
 | 
| 
 | 
 | 
         // 解析头部
 | 
| 
 | 
 | 
         $data = $this->parseMimeHeader($mime_header);
 | 
...
 | 
...
 | 
 |