php-imap icon indicating copy to clipboard operation
php-imap copied to clipboard

The from field has been parsed as string when there's ; in the the email name

Open gitstashgithub opened this issue 1 year ago • 0 comments

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.

gitstashgithub avatar Jul 16 '24 11:07 gitstashgithub