|
@@ 5227-5234 (lines=8) @@
|
| 5224 |
|
$envelope = array_change_key_case($envelope,CASE_UPPER); |
| 5225 |
|
//if ($decode) _debug_array($envelope); |
| 5226 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.array2string($envelope)); |
| 5227 |
|
if ($decode) |
| 5228 |
|
{ |
| 5229 |
|
foreach ($envelope as $key => $rvV) |
| 5230 |
|
{ |
| 5231 |
|
//try idn conversion only on 'FROM', 'TO', 'CC', 'BCC', 'SENDER', 'REPLY-TO' |
| 5232 |
|
$envelope[$key]=self::decode_header($rvV,in_array($key,array('FROM', 'TO', 'CC', 'BCC', 'SENDER', 'REPLY-TO'))); |
| 5233 |
|
} |
| 5234 |
|
} |
| 5235 |
|
return $envelope; |
| 5236 |
|
} else { |
| 5237 |
|
|
|
@@ 5356-5363 (lines=8) @@
|
| 5353 |
|
$retValue['SUBJECT'] = $retValue['SUBJECT'][count($retValue['SUBJECT'])-1]; |
| 5354 |
|
} |
| 5355 |
|
//error_log(__METHOD__.' ('.__LINE__.') '.':'.array2string($decode ? self::decode_header($retValue,true):$retValue)); |
| 5356 |
|
if ($decode) |
| 5357 |
|
{ |
| 5358 |
|
foreach ($retValue as $key => $rvV) |
| 5359 |
|
{ |
| 5360 |
|
//try idn conversion only on 'FROM', 'TO', 'CC', 'BCC', 'SENDER', 'REPLY-TO' |
| 5361 |
|
$retValue[$key]=self::decode_header($rvV,in_array($key,array('FROM', 'TO', 'CC', 'BCC', 'SENDER', 'REPLY-TO'))); |
| 5362 |
|
} |
| 5363 |
|
} |
| 5364 |
|
return $retValue; |
| 5365 |
|
} |
| 5366 |
|
|