Skip to content

Commit df2d36d

Browse files
author
Ryan Gard
committed
Merge branch 'bugfix'
2 parents bb625e6 + b3a40b5 commit df2d36d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/IMAP/Message.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,11 @@ private function parseBody() {
313313
* @param mixed $partNumber
314314
*/
315315
private function fetchStructure($structure, $partNumber = null) {
316-
if ($structure->type == self::TYPE_TEXT && $structure->ifdisposition == 0) {
316+
if ($structure->type == self::TYPE_TEXT &&
317+
($structure->ifdisposition == 0 ||
318+
($structure->ifdisposition == 1 && !isset($structure->parts) && $partNumber == null)
319+
)
320+
) {
317321
if ($structure->subtype == "PLAIN") {
318322
if (!$partNumber) {
319323
$partNumber = 1;

0 commit comments

Comments
 (0)