-
-
Notifications
You must be signed in to change notification settings - Fork 182
Open
Description
Describe the bug
There is a problem with the header encoding detection on certain mails (mainly spam mails).
While listing the content of a specific folder with something like
$messages = $folder->messages()->all()->get();
We are receiving an ErrorException
:
Uninitialized string offset 0
Used config
Not using the php-imap
extension itself.
Code to Reproduce
E.g. the mail has the following From
-header:
...
Message-ID: <xxx_replaced_xxx@mail.gmail.com>
From: "\"High-Speed-Deal\" ." <info@spam.domain.invalid>
Date: Wed, 28 Aug 2025 12:31:41 +0000
...
Expected behavior
Mails should be parsed correctly and the message collection should be returned.
Desktop / Server:
- OS: Ubuntu 24.04
- PHP: 8.4.12
- Version: v6.2.0
- Provider: Exchange
Will create a PR for this.
Metadata
Metadata
Assignees
Labels
No labels