Skip to content

Commit 74245b4

Browse files
girvydasWebklex
authored andcommitted
Bugfix/message structure disposition (#256)
* Fix windows-1257 to utf-8 encoding Encode strings with iconv if possible. * Fetch message structure - check if disposition exists. Closes #253
1 parent c887d63 commit 74245b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -718,7 +718,7 @@ private function fetchStructure($structure, $partNumber = null) {
718718
$body->content = $content;
719719

720720
$this->bodies['html'] = $body;
721-
} elseif (strtolower($structure->disposition) == 'attachment') {
721+
} elseif ($structure->ifdisposition == 1 && strtolower($structure->disposition) == 'attachment') {
722722
if ($this->getFetchAttachmentOption() === true) {
723723
$this->fetchAttachment($structure, $partNumber);
724724
}

0 commit comments

Comments
 (0)