Skip to content

Commit 092dfe2

Browse files
committed
Merge branch 'master' of https://github.com/Webklex/laravel-imap
2 parents 89cd9c7 + 74245b4 commit 092dfe2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ private function fetchStructure($structure, $partNumber = null) {
718718
$body->content = $content;
719719

720720
$this->bodies['html'] = $body;
721-
} elseif (strtolower($structure->disposition) == 'attachment') {
721+
} elseif ($structure->ifdisposition == 1 && strtolower($structure->disposition) == 'attachment') {
722722
if ($this->getFetchAttachmentOption() === true) {
723723
$this->fetchAttachment($structure, $partNumber);
724724
}

0 commit comments

Comments
 (0)