Skip to content
Snippets Groups Projects
Commit 3bcdeab4 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #940 from greezybacon/issue/email-name-comma


pipe: Decode address lists names after parsing emails

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 49deb1bc d6c9ce80
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,7 @@ class Mail_Parse {
$this->charset = $charset;
$this->include_bodies = true;
$this->decode_headers = true;
$this->decode_headers = false;
$this->decode_bodies = true;
//Desired charset
......@@ -233,7 +233,7 @@ class Mail_Parse {
}
function getSubject(){
return $this->struct->headers['subject'];
return Format::mimedecode($this->struct->headers['subject'], $this->charset);
}
function getReplyTo() {
......@@ -486,6 +486,10 @@ class Mail_Parse {
if(PEAR::isError($parsed))
return array();
foreach ($parsed as $p) {
$p->personal = Format::mimedecode($p->personal, $this->charset);
}
return $parsed;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment