* API: decodeMailHeader handle nested encoding for imap_mime_header_decode

This commit is contained in:
Klaus Leithoff 2011-08-18 15:03:56 +00:00
parent ef9ea04c9d
commit 2888e7dfdc

View File

@ -1027,6 +1027,11 @@ class translation
if ($element->charset != 'x-unknown')
{
if( strtoupper($element->charset) != 'UTF-8') $element->text = preg_replace($sar,$rar,$element->text);
if(preg_match('/\?=.+=\?/', $element->text))
{
$element->text = self::decodeMailHeader($element->text, $element->charset);
$element->charset = $displayCharset;
}
$newString .= self::convert($element->text,$element->charset);
}
else