php-imap
php-imap copied to clipboard
The from field has been parsed as string when there's ; in the the email name
This issue is similar to https://github.com/Webklex/php-imap/issues/35
When the email name contains ;(don't ask me why, people just weird), the Header::extractHeaderExtensions() will convert it to a string
for example for John; Doe<[email protected]>, the from attribute is
Webklex\PHPIMAP\Attribute^ {#4561
#name: "from"
#values: array:1 [
0 => "John"
]
}
Can someone please help? Thanks.