-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Zend\Mail\Storage\Mbox can't fetch messages due to header issues #37
Comments
I believe a clarification is in order: I simply cannot fetch these messages. It doesn't matter if I catch this Exception or not, which is the reason for this issue. Originally posted by @galvao at zendframework/zend-mail#193 (comment) |
Update: Using the second method (count + for loop) it's possible to catch the Exception, but still, every single message causes this Exception, making the task of reading these messages absolutely impossible. Originally posted by @galvao at zendframework/zend-mail#193 (comment) |
What about using
in https://github.com/laminas/laminas-mail/blob/2.13.x/src/Headers.php#L30 |
Closing issue due to being inactive for more than 1 year. |
PHP 7.2.2, Zend Mail at it's latest version as of today.
I'm opening an old mailbox file generated by Mozilla Thunderbird (please note that I get the same issue with other Thunderbird mailbox files). It has 2,521 messages and every single one of them causes this Zend\Mail\Exception\RuntimeException.
This issue happens:
And it's located at zendframework/zend-mail/src/Headers.php on line 109.
The exact headers causing the issue are X-Mozilla-Status and X-Account-Key. See the sample below (I've removed [potentially] sensitive data such as e-mail addresses, etc... for obvious reasons).
Originally posted by @galvao at zendframework/zend-mail#193
The text was updated successfully, but these errors were encountered: