- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 183
 
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: <[email protected]>
From: "\"High-Speed-Deal\" ." <[email protected]>
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