fix: mail2infolog, wrong contact link when mail from sent folder

This commit is contained in:
Cornelius Weiß 2007-05-02 09:34:13 +00:00
parent 2acc48d0ee
commit 3e8c4b1dd3

View File

@ -1244,7 +1244,8 @@ class uiinfolog
$bodyParts = $bofelamimail->getMessageBody($uid,'text/plain'); $bodyParts = $bofelamimail->getMessageBody($uid,'text/plain');
$attachments = $bofelamimail->getMessageAttachments($uid); $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']); elseif (isset($headers['SENDER'])) $mailaddress = $bofelamimail->decode_header($headers['SENDER']);
$subject = $bofelamimail->decode_header($headers['SUBJECT']); $subject = $bofelamimail->decode_header($headers['SUBJECT']);