...
|
...
|
@@ -326,7 +326,8 @@ class Body { |
|
|
public function getAttachment(bool $inline = false):array {
|
|
|
$attachment = [];
|
|
|
foreach ($this->items as $item){
|
|
|
if($item->eq('Content-Disposition',$inline ? 'inline' : 'attachment')){
|
|
|
// 有的邮箱服务器 不带inline,就只有通过content-id来识别了
|
|
|
if((!$inline && $item->eq('Content-Disposition','attachment')) || ($inline && $item->get('Content-ID'))){
|
|
|
$attachment[] = new Attachment($item);
|
|
|
}
|
|
|
}
|
...
|
...
|
|