Webklex / laravel-imap

Laravel IMAP is an easy way to integrate both the native php-imap module and an extended custom imap protocol into your Laravel app.
https://www.php-imap.com
MIT License
641 stars 182 forks source link

Incorrect Handling of Extended Header Attributes in the Parser #498

Closed more7dev closed 1 month ago

more7dev commented 2 months ago

The parser incorrectly treats extended header attributes as main attributes. For example, in the header x-keepsent: XXXX:XXXX-XXXX:XXXX; type=4; name=$KeepSent, the name attribute is mistakenly assigned as a main attribute in the method \Webklex\PHPIMAP\Header::extractHeaderExtensions.

This behavior is problematic because it causes the name attribute to be recognized as a main attribute rather than an extension. Consequently, the method \Webklex\PHPIMAP\Part::isAttachment mistakenly identifies the content as an attachment.

more7dev commented 1 month ago

The task was added to the wrong project, closing it.