...
|
...
|
@@ -860,6 +860,21 @@ class Imap { |
|
|
throw new \Exception('fetch error:'.end($result[1]));
|
|
|
}
|
|
|
|
|
|
if ($header2Body=='body'){
|
|
|
$result[1] = array_values($result[1]);
|
|
|
|
|
|
foreach ($result[1] as $k=>$item){
|
|
|
if(!isset($result[1][$k+1])){
|
|
|
break;
|
|
|
}
|
|
|
// * 564 FETCH (
|
|
|
if(!preg_match("/^\*\s\d+\sFETCH\s\(/",$item)){
|
|
|
$result[1][$k-1] .= $item;
|
|
|
unset($result[1][$k]);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 开始解析数据
|
|
|
$list = [];
|
|
|
foreach ($result[1] as $item){
|
...
|
...
|
|