php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

Issue reading email , shows in total variable 2 but item array empty

Open SanaAsghar92 opened this issue 1 year ago • 0 comments

When i read unseen emails from Inbox it shows in total but item array empty so it didn't read the content of emails

The code // Get the account where you want to read emails $client = Client::account('usgit.support'); $client->connect();

        // Get the inbox folder
        $folder = $client->getFolder("INBOX");

        // Get all unseen messages since the current date
        // $unseen = $folder->search()->unseen()->since($currentDate)->get();
        $unseen = $folder->search()->unseen()->get();

        dd($unseen);

Following is the result Webklex\PHPIMAP\Support\MessageCollection {#10791 ▼ #total: 2 #items: [] #escapeWhenCastingToString: false }

Version "php": "^8.0.20", "webklex/laravel-imap": "^4.1",

SanaAsghar92 avatar Apr 09 '24 07:04 SanaAsghar92