diff --git a/infolog/inc/class.uiinfolog.inc.php b/infolog/inc/class.uiinfolog.inc.php index 49837e53f8..d94cf2c51f 100644 --- a/infolog/inc/class.uiinfolog.inc.php +++ b/infolog/inc/class.uiinfolog.inc.php @@ -1244,7 +1244,8 @@ class uiinfolog $bodyParts = $bofelamimail->getMessageBody($uid,'text/plain'); $attachments = $bofelamimail->getMessageAttachments($uid); - if (isset($headers['FROM'])) $mailaddress = $bofelamimail->decode_header($headers['FROM']); + if ($mailbox == 'Sent') $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']); $subject = $bofelamimail->decode_header($headers['SUBJECT']);