diff --git a/src/PhpImap/IncomingMail.php b/src/PhpImap/IncomingMail.php index d9552615..1197199a 100644 --- a/src/PhpImap/IncomingMail.php +++ b/src/PhpImap/IncomingMail.php @@ -219,11 +219,7 @@ 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);