...
|
...
|
@@ -646,10 +646,10 @@ class Imap { |
|
|
public function fetchBody($data,$saveFilePath=__DIR__,$is_uid = false){
|
|
|
// 取得body
|
|
|
$result = $this->fetch($data,'body',$is_uid);
|
|
|
foreach ($result as &$item){
|
|
|
foreach ($result as $key=>$item){
|
|
|
if (!empty($item['RFC822.TEXT'])){
|
|
|
// 解析
|
|
|
$item['RFC822.TEXT'] = (new Body($item['RFC822.TEXT'],$saveFilePath))->getItem();
|
|
|
$result[$key]['RFC822.TEXT'] = (new Body($item['RFC822.TEXT'],$saveFilePath))->getItem();
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|