-
Notifications
You must be signed in to change notification settings - Fork 459
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
Error when empty headers field "from" #280
Comments
Based on the RFC 822, the RFC 822 Section 4.4.1 says this:
I've updated the library to avoid throwing this error again. I've also added the @StApostol are you able to test it again in order to verify the fix? Note: This change is currently only available in the |
The next release will also check, if the This solves the issue, that it throws your mentioned exception. If it's empty, it will not even try to get any value. So you only need to check in your applications code, that |
- Updated README - Move phpunit to require-dev - Add note about installing dev dependencies in README - Replaced spaces with tabs - Added PHPUnit tests for MIME decoding - Updated formatting of PHPUnit function testParsedDateTimeWithEmptyHeaderDate() - Issue #209: Function to parse datetime correctly RFC2822 - Issue #280: Added 'Sender' to headers and added additional if-conditions - Issue #115: getMail() method returns an object even for nonexistent mail ID - Issue #273: Added connection check to example - Issue #227: Added Failed-Recipients to IncomingMailHeader - Issue #140, #246: Improved exception handling and added PHPUnit test - Issue #140: Added PHPUnit test for testing ConnectionException - Issue #140: Improved exception / error handling and improved / added PHPUnit tests - Issue #154: Added ability to change the imap_search option from SE_UID to SE_FREE and added PHPUnit tests - Issue #306: Added support for US-ASCII and added ability to disable serverEncoding for searchMailbox() - Imported missing namespaces to avoid 'unknown class' error messages - Issue #86: Simplified and improved one replace regex for attachment file names - Issue #247: Improved grabbing of fromName, fromHost, senderName and senderHost - Issue #39, #71, #229: Fixed body content gets incorrectly processed as attachments - Issue #122, #150, #167: Added ability to skip processing of attachments to increase performance, when attachments are not required - PR #284: Added missing PHPUnit tests - Issue #122, #150, #167: Lazy load message text and attachments data
Some time ago, spam messages with the following headings began to pour into the mail. And the parser can not parse them correctly
ErrorException: Undefined property: stdClass::$from in /vendor/php-imap/php-imap/src/PhpImap/Mailbox.php:415
Mail headers
The text was updated successfully, but these errors were encountered: