Skip to content

Commit

Permalink
Merge pull request #98 from sschiffel/master
Browse files Browse the repository at this point in the history
add attachment disposition to attachment object
  • Loading branch information
barbushin committed Nov 6, 2015
2 parents 8572353 + a9431bf commit e5fc652
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/PhpImap/IncomingMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ class IncomingMailAttachment {
public $id;
public $name;
public $filePath;
public $disposition;
}
1 change: 1 addition & 0 deletions src/PhpImap/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/' => '_',
Expand Down

0 comments on commit e5fc652

Please sign in to comment.