Skip to content

Commit 6afea8b

Browse files
authored
Merge pull request #15 from radicalloop/master
adding attachment disposition param
2 parents 6f8a6e4 + ac85429 commit 6afea8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/IMAP/Message.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ protected function fetchAttachment($structure, $partNumber){
413413
foreach ($structure->dparameters as $parameter) {
414414
if (strtolower($parameter->attribute) == "filename") {
415415
$attachment->name = $parameter->value;
416+
$attachment->disposition = $structure->disposition;
416417
break;
417418
}
418419
}
@@ -422,6 +423,7 @@ protected function fetchAttachment($structure, $partNumber){
422423
foreach ($structure->parameters as $parameter) {
423424
if (strtolower($parameter->attribute) == "name") {
424425
$attachment->name = $parameter->value;
426+
$attachment->disposition = $structure->disposition;
425427
break;
426428
}
427429
}

0 commit comments

Comments
 (0)