作者 邓超

邮件同步 body解析

@@ -400,6 +400,12 @@ class Body { @@ -400,6 +400,12 @@ class Body {
400 if($atta->getFilename()){ 400 if($atta->getFilename()){
401 return true; 401 return true;
402 } 402 }
  403 + // 这个是邮件发的源文件,以附件的形式存在
  404 + if($atta->data->eq('content-type','message/rfc822')){
  405 + // 设置名字
  406 + $atta->data->set('filename',$this->header->getSubject().'.eml');
  407 + return true;
  408 + }
403 return false; 409 return false;
404 }); 410 });
405 } 411 }