Skip to content

Commit a7526f8

Browse files
authored
Use address charset from header information if set (#286)
1 parent d38e0cc commit a7526f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/IMAP/Message.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ private function parseAddresses($list) {
608608
if(is_array($personalParts)) {
609609
$address->personal = '';
610610
foreach ($personalParts as $p) {
611-
$encoding = $this->getEncoding($p->text);
611+
$encoding = (property_exists($p, 'charset')) ? $p->charset : $this->getEncoding($p->text);
612612
$address->personal .= $this->convertEncoding($p->text, $encoding);
613613
}
614614
}

0 commit comments

Comments
 (0)