...
|
...
|
@@ -132,6 +132,17 @@ class Body { |
|
|
*/
|
|
|
public function getItem(): array
|
|
|
{
|
|
|
|
|
|
foreach ($this->item as $k=>$item){
|
|
|
//是否有 =E2=81=B6=E2=81=B6=E2=81=B9=C2=B3=C2=B9=C2=B2=C2=BA=C2=B3=C2=BAS 一样的字符
|
|
|
if($item['type']=='text/plain' && preg_match("/(=[A-Z0-9]{2,}){2,}/",$item['body'])){
|
|
|
// 进行解码
|
|
|
$item['body'] = quoted_printable_decode($item['body']);
|
|
|
}
|
|
|
|
|
|
$this->item[$k] = $item;
|
|
|
}
|
|
|
|
|
|
return $this->item;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -278,12 +289,6 @@ class Body { |
|
|
}
|
|
|
}
|
|
|
|
|
|
//是否有 =E2=81=B6=E2=81=B6=E2=81=B9=C2=B3=C2=B9=C2=B2=C2=BA=C2=B3=C2=BAS 一样的字符
|
|
|
if($data['type']=='text/plain' && preg_match("/(=[A-Z0-9]{2,}){2,}/",$data['body'])){
|
|
|
// 进行解码
|
|
|
$data['body'] = quoted_printable_decode($data['body']);
|
|
|
}
|
|
|
|
|
|
// 转码
|
|
|
// if(isset($data['charset']) && $data['charset']){
|
|
|
// $debody = @mb_convert_encoding($data['body'],'utf-8',$data['charset']);
|
...
|
...
|
|