You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
I believe it is related to #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.
@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):
The text was updated successfully, but these errors were encountered: