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.
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.