Open diderich opened 1 month ago
It seems that replacing
public function getMessagesGreaterThanUid(string $folderName, int $uid, int $limit)
{
return $this->getFolderByName($folderName)->query()->limit($limit)->getByUidGreater($uid);
}
in app/Mail/Connections/Imap.php
by
public function getMessagesGreaterThanUid(string $folderName, int $uid, int $limit)
{
try {
return $this->getFolderByName($folderName)->query()->limit($limit)->getByUidGreater($uid);
}
catch(\Exception $err) {
return new \Webklex\PHPIMAP\Support\MessageCollection();
}
}
solves the problem, but I don't know whether that is the right way of addressing the problem.
Having problems with the import here as well. Any chance you could help with my issue #17565? :(
π bug report
βοΈ Describe the bug
PHPIMAP
throws an exception statingEmpty response
when running the cron job to import e-mails (LBL_MAIL_SCANNER_ACTION).π₯ How to trigger the error
Steps to reproduce the behavior:
php cron.php
π Actual Behavior
The cron run raises an exception (as show above).
π Expected Behavior
The cron run completes successfully.
π· Testing
π· Screenshot of configuration
π PHP/Apache/Nginx/Browser/CRM Logs
See above for log message in cache error file.
π Your Environment
β Additional context
N/A
βοΈ Inform the community if you solve the problem