Laravel IMAP is an easy way to integrate both the native php-imap module and an extended custom imap protocol into your Laravel app.
629
stars
179
forks
source link
Thread not getting when i used message get by the message_id #473
Closed
AnandhuAuzone closed 1 year ago
this is the code and is used the verion 4.2
$message = $this->client_gmail->getFolder($folder_name ? $folder_name : 'INBOX')-> query()->whereHeader('Message-ID', 'CAAyVBMKHR==RvStaVjRZEApzgO9=tcAbf')-> limit(1)->setFetchFlags(true)->setFetchBody(true)->get();
$currentThread = null;
$threadmessages = $message->thread($sent_folder,$currentThread,$selected_folder);
foreach ($threadmessages as $threadmessage) {
echo "body-----".$threadmessage->getTextBody()."\n"; }
the error is BadMethodCallException: Method Webklex\PHPIMAP\Support\MessageCollection::thread does not exist. in file