Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid message date. ID:" GetMessagedFailedException #412

Closed
dannylifino opened this issue Sep 9, 2021 · 2 comments
Closed

Invalid message date. ID:" GetMessagedFailedException #412

dannylifino opened this issue Sep 9, 2021 · 2 comments

Comments

@dannylifino
Copy link

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):

  • OS: Windows 10
  • PHP: 7.4.10
  • Version: 2.4.9
@Webklex
Copy link
Owner

Webklex commented Sep 9, 2021

Hi @dannylifino ,
many thanks for your report.

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.

Best regards,

@Webklex Webklex closed this as completed Sep 9, 2021
@dannylifino
Copy link
Author

dannylifino commented Sep 9, 2021

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants