fixed ishues found by jerryr: Subject was not working and saving from subfolders was not working

This commit is contained in:
Cornelius Weiß 2007-01-14 08:09:22 +00:00
parent b3640356f3
commit 68639c69f8

View File

@ -1174,6 +1174,7 @@ class uiinfolog
$bofelamimail =& CreateObject('felamimail.bofelamimail',$GLOBALS['egw']->translation->charset());
$bopreferences =& CreateObject('felamimail.bopreferences');
$bofelamimail->openConnection();
$bofelamimail->reopen($mailbox);
$headers = $bofelamimail->getMessageHeader($uid);
$bodyParts = $bofelamimail->getMessageBody($uid,'');
@ -1182,7 +1183,7 @@ class uiinfolog
if (isset($headers['FROM'])) $mailaddress = $bofelamimail->decode_header($headers['FROM']);
elseif (isset($headers['SENDER'])) $mailaddress = $bofelamimail->decode_header($headers['SENDER']);
$subject = $bofelamimail->decode_header($headers->Subject);
$subject = $bofelamimail->decode_header($headers['SUBJECT']);
for($i=0; $i<count($bodyParts); $i++)
{