Skip to content

Commit

Permalink
Update IncomingMail.php
Browse files Browse the repository at this point in the history
fix issue barbushin#710
  • Loading branch information
bpali authored Apr 25, 2023
1 parent 94107fd commit afae758
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/PhpImap/IncomingMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit afae758

Please sign in to comment.