From 3e8c4b1dd3121f6f8e8f61e62d6bf2465328711f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cornelius=20Wei=C3=9F?= Date: Wed, 2 May 2007 09:34:13 +0000 Subject: [PATCH] fix: mail2infolog, wrong contact link when mail from sent folder --- infolog/inc/class.uiinfolog.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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']);