handle encoded subjects on saving emails on disc

This commit is contained in:
Klaus Leithoff 2013-01-17 12:21:48 +00:00
parent 7651204eeb
commit a9388edec7

View File

@ -2015,7 +2015,7 @@ blockquote[type=cite] {
$GLOBALS['egw']->session->commit_session();
if ($display==false)
{
$subject = str_replace('$$','__',$headers['SUBJECT']);
$subject = str_replace('$$','__',felamimail_bo::decode_header($headers['SUBJECT']));
header ("Content-Type: message/rfc822; name=\"". $subject .".eml\"");
header ("Content-Disposition: attachment; filename=\"". $subject .".eml\"");
header("Expires: 0");