diff --git a/src/PhpImap/Mailbox.php b/src/PhpImap/Mailbox.php index e239ef3e..c25503c4 100644 --- a/src/PhpImap/Mailbox.php +++ b/src/PhpImap/Mailbox.php @@ -636,7 +636,7 @@ protected function initMailPart(IncomingMail $mail, $partStructure, $partNum, $m } if(!empty($partStructure->parts)) { foreach($partStructure->parts as $subPartNum => $subPartStructure) { - if($partStructure->type == 2 && $partStructure->subtype == 'RFC822' && $partStructure->disposition !== "attachment") { + if($partStructure->type == 2 && $partStructure->subtype == 'RFC822' && (!isset($partStructure->disposition) || $partStructure->disposition !== "attachment")) { $this->initMailPart($mail, $subPartStructure, $partNum, $markAsSeen); } else {