Skip to content

Commit 52baf30

Browse files
committed
Test & implement fix for #203 #270 #235
1 parent 00e7676 commit 52baf30

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -667,9 +667,7 @@ private function fetchStructure($structure, $partNumber = null) {
667667
$this->client->openFolder($this->folder_path);
668668

669669
if ($structure->type == IMAP::MESSAGE_TYPE_TEXT &&
670-
($structure->ifdisposition == 0 ||
671-
($structure->ifdisposition == 1 && !isset($structure->parts) && $partNumber != null)
672-
)
670+
(empty($structure->disposition) || strtolower($structure->disposition) != 'attachment')
673671
) {
674672
if (strtolower($structure->subtype) == "plain" || strtolower($structure->subtype) == "csv") {
675673
if (!$partNumber) {

0 commit comments

Comments
 (0)