Skip to content

How to solve Invalid Message Date #198

@dannylifino

Description

@dannylifino

Our company is currently automatically fetching our inbox messages using:
$inboxMessages = $this->inboxFolder->messages()->all()->get();

Occassionaly, we get a bad message in there with an invalid message date, which throws an error and terminates the whole script. If this happens, we manually clear out our inbox that consists of like 500+ messages a day. This is a real struggle, because if we get this error, we have to spend a lot of time searching and fixing it.

Error:
GetMessagesFailedException Invalid message date. ID: Date:Di., 15 Feb. 2022 06:52:44 +0100 (MEZ)/Di., 15 Feb. 2022 06:52:44 +0100 (MEZ)

Is there some sort of way that we can skip these messages from fetching or like delete them, without editing your whole package @Webklex ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions