From 80c35618087495e4e930acd0986cbcae9f4b438a Mon Sep 17 00:00:00 2001 From: Steffen Schiffel Date: Sun, 1 Nov 2015 20:26:23 +0100 Subject: [PATCH 1/2] add attachment disposition to attachment object --- src/PhpImap/IncomingMail.php | 1 + 1 file changed, 1 insertion(+) 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; } From a9431bf12b1dc1717641ea1746b932c0282ddb42 Mon Sep 17 00:00:00 2001 From: Steffen Schiffel Date: Sun, 1 Nov 2015 20:31:35 +0100 Subject: [PATCH 2/2] add attachment disposition to attachment object --- src/PhpImap/Mailbox.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PhpImap/Mailbox.php b/src/PhpImap/Mailbox.php index 2d9a7b80..57a4053c 100644 --- a/src/PhpImap/Mailbox.php +++ b/src/PhpImap/Mailbox.php @@ -513,6 +513,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/' => '_',