...
|
...
|
@@ -585,6 +585,10 @@ class Imap { |
|
|
$result = $this->fetch($data,'header',$is_uid);
|
|
|
// 解析header字段
|
|
|
foreach ($result as $key=>$item){
|
|
|
if(empty($item['HEADER.FIELDS'])){
|
|
|
unset($result[$key]);
|
|
|
continue;
|
|
|
}
|
|
|
$result[$key]['HEADER.FIELDS'] = $this->parseHeader($item['HEADER.FIELDS']);
|
|
|
// 编码问题
|
|
|
preg_match('/\("charset" "([a-z0-9\-]{3,})"\)/iU',$result[$key]['BODYSTRUCTURE'],$charset);
|
...
|
...
|
|