SSilence / php-imap-client

a easy solution for simple IMAP email access in php
MIT License
269 stars 136 forks source link

Notice: Undefined property: stdClass::$dparameters #149

Closed JerBlo closed 7 years ago

JerBlo commented 7 years ago

In some e-mails, an inline attachment does not have the "dparameters" array for the filename of the image (e-mail was sent from Outlook 2016).

This result in a PHP notice and warning (and off course no filename).

Notice: Undefined property: stdClass::$dparameters in ...\ImapClient\IncomingMessageAttachment.php on line 70 Warning: Invalid argument supplied for foreach() in ...\ImapClient\IncomingMessageAttachment.php on line 70

Possible solution:

In code this looks like: https://pastebin.com/NchXGGsg

mattparksjr commented 7 years ago

Hmm, we will be sure to add a fallback!! I'm pretty sure the latest pr fixed but let me know!