Closed dannylifino closed 3 years ago
Hi @dannylifino , many thanks for your report.
I believe it is related to https://github.com/Webklex/laravel-imap/issues/45 and since v2 handled by webklex/php-imap. In general this is an expected behavior. If you don't like the way an invalid date gets handled, please feel welcome to create a new issue or feature request over at webklex/php-imap.
Best regards,
@Webklex Thanks for your fast response. So this would mean that I can't read a mailbox of 1000+ mails, because of 1 mail that has an invalid date. Are there any alternatives to get all the mails without the invalid one?
Describe the bug I am trying to fetch all messages from the mailboxes, which was working fine for a while. However it seems that a message with an invalid message date throws the GetMessagesFailedException, whereas I cannot get this to work without the use of a dirty workaround. Furthermore, there are no weird emails retrieved in the mailbox either.
To Reproduce Steps to reproduce the behavior:
To note is that this used to work for weeks until a message appeared with an 'Invalid message date'. Simple code: $this->inboxFolder->messages()->all()->get();
Expected behavior I expect it to return all messages as usual
Screenshots https://ibb.co/K61MGN1
Desktop / Server (please complete the following information):