Skip to content

Commit 37c444f

Browse files
authored
Update Message.php
Trigger error "Webklex\PHPIMAP\Exceptions\GetMessagesFailedException no content found " When use : $folder = $client->getFolderByName($folderPath); $query = $folder->query(); $query->setFetchOrder("desc"); $query->setFetchBody(false); $messages = $query->all()->limit($limit = 50, $page = 1)->get(); and one message has no content.
1 parent 6d99943 commit 37c444f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Message.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ public static function make(int $uid, ?int $msglist, Client $client, string $raw
296296

297297
$instance->parseRawHeader($raw_header);
298298
$instance->parseRawFlags($raw_flags);
299-
$instance->parseRawBody($raw_body);
299+
if($raw_body != ''){
300+
$instance->parseRawBody($raw_body);
301+
}
300302
$instance->peek();
301303

302304
return $instance;

0 commit comments

Comments
 (0)