diff --git a/src/PhpImap/IncomingMail.php b/src/PhpImap/IncomingMail.php index 91ed4571..a7c15518 100644 --- a/src/PhpImap/IncomingMail.php +++ b/src/PhpImap/IncomingMail.php @@ -220,11 +220,8 @@ public function embedImageAttachments(): void $cid = \str_replace('cid:', '', $match); foreach ($attachments as $attachment) { - /** - * Inline images can contain a "Content-Disposition: inline", but only a "Content-ID" is also enough. - * See https://github.com/barbushin/php-imap/issues/569. - */ - if ($attachment->contentId == $cid || 'inline' == \mb_strtolower((string) $attachment->disposition)) { + + if ($attachment->contentId == $cid) { $contents = $attachment->getContents(); $contentType = $attachment->getFileInfo(FILEINFO_MIME_TYPE);