fixing an en/de- coding issue, regarding the attaching of an .eml file to the infolog in question when converting an email -with german umlauts within the subject line- to infolog and adding the original email to it.

This commit is contained in:
Klaus Leithoff 2011-11-21 12:41:58 +00:00
parent 2bd05d6f0d
commit b11e7f9291

View File

@ -2176,7 +2176,7 @@ class infolog_ui
if ($GLOBALS['egw_info']['user']['preferences']['felamimail']['saveAsOptions']==='add_raw')
{
$message = $bofelamimail->getMessageRawBody($uid, $partid);
$headers = $bofelamimail->getMessageHeader($uid, $partid);
$headers = $bofelamimail->getMessageHeader($uid, $partid,true);
$subject = str_replace('$$','__',($headers['SUBJECT']?$headers['SUBJECT']:lang('(no subject)')));
$attachment_file =tempnam($GLOBALS['egw_info']['server']['temp_dir'],$GLOBALS['egw_info']['flags']['currentapp']."_");
$tmpfile = fopen($attachment_file,'w');