From a9388edec7860e8f1f4d52786c4b1889c54833cd Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Thu, 17 Jan 2013 12:21:48 +0000 Subject: [PATCH] handle encoded subjects on saving emails on disc --- felamimail/inc/class.uidisplay.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/felamimail/inc/class.uidisplay.inc.php b/felamimail/inc/class.uidisplay.inc.php index c0dba4bae5..2958971104 100644 --- a/felamimail/inc/class.uidisplay.inc.php +++ b/felamimail/inc/class.uidisplay.inc.php @@ -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");