#bugfix: wrong contact address, when converting emails out of the sent-folder

if a message is converted to infolog, and it is located within the sent-folder the to-address is now applied as contact address.
This commit is contained in:
Klaus Leithoff 2008-06-04 08:16:02 +00:00
parent 1585195b98
commit c683175b1b

View File

@ -1363,7 +1363,7 @@ class uiinfolog
$bodyParts = $bofelamimail->getMessageBody($uid,'text/plain',$partid);
$attachments = $bofelamimail->getMessageAttachments($uid,$partid);
if ($mailbox == 'Sent') $mailaddress = $bofelamimail->decode_header($headers['TO']);
if ($bofelamimail->isSentFolder($mailbox)) $mailaddress = $bofelamimail->decode_header($headers['TO']);
elseif (isset($headers['FROM'])) $mailaddress = $bofelamimail->decode_header($headers['FROM']);
elseif (isset($headers['SENDER'])) $mailaddress = $bofelamimail->decode_header($headers['SENDER']);