We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If message has attachment with undefined subtype, any call to attachment related method triggers notice "Undefined property: stdClass::$subtype".
Message/AbstractPart::isAttachment (row 423) do not check if property exists.
I have message in Inbox from Gmail stating that the target email account do not exist. It has 2 attachments:
Row 423 should be something like: if (property_exists($part, 'subtype') and self::SUBTYPE_RFC822 === \strtoupper($part->subtype)) {
The text was updated successfully, but these errors were encountered:
Could you please post here the message/delivery-status attachment?
message/delivery-status
Sorry, something went wrong.
Sure. I copied that from getRawMessage() output:
--00000000000078125c05b7095328\r\n Content-Type: message/delivery-status\r\n \r\n Reporting-MTA: dns; googlemail.com\r\n Received-From-MTA: dns; [email protected]\r\n Arrival-Date: Tue, 22 Dec 2020 00:26:06 -0800 (PST)\r\n X-Original-Message-ID: <[email protected]>\r\n \r\n Final-Recipient: rfc822; [email protected]\r\n Action: failed\r\n Status: 5.0.0\r\n Diagnostic-Code: smtp; The email account that you tried to reach does not exist. Please try double-checking the recipient's email address for typos or unnecessary spaces. Learn more at https://support.google.com/mail/answer/6596\r\n Last-Attempt-Date: Tue, 22 Dec 2020 00:26:06 -0800 (PST)\r\n \r\n
No branches or pull requests
Summary
If message has attachment with undefined subtype, any call to attachment related method triggers notice "Undefined property: stdClass::$subtype".
Current behavior
Message/AbstractPart::isAttachment (row 423) do not check if property exists.
How to reproduce: code & error stack trace
I have message in Inbox from Gmail stating that the target email account do not exist. It has 2 attachments:
Expected behavior
Row 423 should be something like:
if (property_exists($part, 'subtype') and self::SUBTYPE_RFC822 === \strtoupper($part->subtype)) {
The text was updated successfully, but these errors were encountered: