作者 邓超

解析时多标题多出的空格

@@ -973,6 +973,7 @@ class Home extends Base { @@ -973,6 +973,7 @@ class Home extends Base {
973 } 973 }
974 974
975 if($data){ 975 if($data){
  976 + $data['subject'] = str_replace("\n ",'',$data['subject']);
976 $data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['from'],$data['to'],$data['size']); 977 $data['uuid'] = get_email_uuid($data['subject'],$data['udate'],$data['from'],$data['to'],$data['size']);
977 978
978 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8'); 979 $data['description'] = @html_entity_decode($data['description']??'', ENT_COMPAT, 'UTF-8');
@@ -269,6 +269,8 @@ class HomeEs extends Base { @@ -269,6 +269,8 @@ class HomeEs extends Base {
269 $v = $v['_source']; 269 $v = $v['_source'];
270 $v['id'] = $v['uuid']; 270 $v['id'] = $v['uuid'];
271 271
  272 + $v['subject'] = str_replace("\n ",'',$v['subject']);
  273 +
272 $v['from_name'] = $v['from']['name']??''; 274 $v['from_name'] = $v['from']['name']??'';
273 $v['from'] = $v['from']['email']??''; 275 $v['from'] = $v['from']['email']??'';
274 276
@@ -252,6 +252,8 @@ class MailListV2Es extends Base { @@ -252,6 +252,8 @@ class MailListV2Es extends Base {
252 $v = $v['_source']; 252 $v = $v['_source'];
253 $v['id'] = $v['uuid']; 253 $v['id'] = $v['uuid'];
254 254
  255 + $v['subject'] = str_replace("\n ",'',$v['subject']);
  256 +
255 $v['from_name'] = $v['from']['name']??''; 257 $v['from_name'] = $v['from']['name']??'';
256 $v['from'] = $v['from']['email']??''; 258 $v['from'] = $v['from']['email']??'';
257 259