diff --git a/src/PhpImap/IncomingMail.php b/src/PhpImap/IncomingMail.php index 7512eee0..17ea0d1f 100644 --- a/src/PhpImap/IncomingMail.php +++ b/src/PhpImap/IncomingMail.php @@ -62,4 +62,5 @@ class IncomingMailAttachment { public $id; public $name; public $filePath; + public $disposition; } diff --git a/src/PhpImap/Mailbox.php b/src/PhpImap/Mailbox.php index 5822a2fd..8e8d91f7 100644 --- a/src/PhpImap/Mailbox.php +++ b/src/PhpImap/Mailbox.php @@ -523,6 +523,7 @@ protected function initMailPart(IncomingMail $mail, $partStructure, $partNum, $m $attachment = new IncomingMailAttachment(); $attachment->id = $attachmentId; $attachment->name = $fileName; + $attachment->disposition = $partStructure->disposition; if($this->attachmentsDir) { $replace = array( '/\s/' => '_',