-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Webklex\PHPIMAP\Exceptions\GetMessagesFailedException Invalid message date. #173
Comments
Hi @dannylifino , Its likely caused by this method: Lines 685 to 742 in e22be3e
As you can see here: Lines 719 to 727 in e22be3e
It tries to detect and fix broken dates. A history of broken date formats can be found here: Webklex/laravel-imap#45 Anyway, in order to solve the problem two things are required:
Best regards, |
@Webklex I am really struggling to this part, because there are no code samples availabe on how I should go about this approuch. Currently there are about 500 messages send daily to the mailbox, and it gives back as ID: ' ID:[email protected]', which I can't use to look up the message. I would really appreciate your help! |
Can you post the entire error stack? It might contain additional information (such as the date in question). You could also dump Best regards, |
@Webklex Thanks for your quick response once again :) This is the error log that I get: Invalid message date. ID:[email protected] at C:\xampp\htdocs\portal\vendor\webklex\php-imap\src\Query\Query.php:347 1 C:\xampp\htdocs\portal\vendor\webklex\php-imap\src\Query\Query.php:766 2 C:\xampp\htdocs\portal\vendor\webklex\php-imap\src\Query\Query.php:265 |
Thanks! |
@Webklex Is it also possible to solve this issue without editing the composer package? |
Hi @dannylifino , Best regards, |
Hi @dannylifino , Best regards, |
I'm having the same problem, debugging find out that date with format "2022.07.27-14.35.59" its not parseable. can you fix that @Webklex . thanks in advance |
So currently I am having an issue with fetching emails from a mailbox due to an invalid message date of 1 mail. Although this is only 1 mail, this stops the entire mailbox from read out and I can't seem to find a solution for the issue.
The code, which seems like basic throws error: Webklex\PHPIMAP\Exceptions\GetMessagesFailedException Invalid message date. I have not changed the config regarding the date formats either.
$inboxMessages = $this->inboxFolder->messages()->all()->get(); $spamMessages = $this->spamFolder->messages()->all()->get();
Is there a way to get the fetch working with filtering out the invalid one?
The text was updated successfully, but these errors were encountered: