Merge pull request #8 from azghanvi/master

Update Body.php
This commit is contained in:
A. F 2019-02-25 14:43:43 +01:00 committed by GitHub
commit 665f1d1d55
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,7 @@ class Body
$part = $structure->parts[1];
$this->message = imap_fetchbody($this->connection->getStream(),$this->message_number , $option);
$this->encoding = $part->encoding;
if($part->encoding == 3) {
@ -94,6 +95,9 @@ class Body
$this->message = imap_qprint($this->message);
}
}
else {
$this->message = imap_body($this->connection->getStream(),$this->message_number , $option);
}
return $this->message;
}
@ -107,4 +111,4 @@ class Body
{
return $this->encoding;
}
}
}