Skip to content

Commit

Permalink
Merge pull request #183 from duper51/patch-1
Browse files Browse the repository at this point in the history
Prevent Parsing of attachments
  • Loading branch information
barbushin authored Aug 23, 2017
2 parents 2d5e8b3 + b58966d commit ec93450
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpImap/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
if($partStructure->type == 2 && $partStructure->subtype == 'RFC822' && $partStructure->disposition !== "attachment") {
$this->initMailPart($mail, $subPartStructure, $partNum, $markAsSeen);
}
else {
Expand Down

0 comments on commit ec93450

Please sign in to comment.