Skip to content

Commit

Permalink
Test & implement fix for #203 #270 #235
Browse files Browse the repository at this point in the history
  • Loading branch information
Webklex committed Jan 23, 2020
1 parent 00e7676 commit 52baf30
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/IMAP/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,7 @@ private function fetchStructure($structure, $partNumber = null) {
$this->client->openFolder($this->folder_path);

if ($structure->type == IMAP::MESSAGE_TYPE_TEXT &&
($structure->ifdisposition == 0 ||
($structure->ifdisposition == 1 && !isset($structure->parts) && $partNumber != null)
)
(empty($structure->disposition) || strtolower($structure->disposition) != 'attachment')
) {
if (strtolower($structure->subtype) == "plain" || strtolower($structure->subtype) == "csv") {
if (!$partNumber) {
Expand Down

0 comments on commit 52baf30

Please sign in to comment.