patch to enable infolog to retrieve/save messages that have been part of (attachment of) another message

This commit is contained in:
Klaus Leithoff 2008-05-23 10:51:54 +00:00
parent fc47271569
commit d4544daf94

View File

@ -1324,6 +1324,7 @@ class uiinfolog
function import_mail($_to_emailAddress=false,$_subject=false,$_body=false,$_attachments=false,$_date=false)
{
$uid = $_GET['uid'];
$partid = $_GET['part'];
$mailbox = $_GET['mailbox'];
if (!empty($_to_emailAddress))
@ -1358,9 +1359,9 @@ class uiinfolog
$bofelamimail->openConnection();
$bofelamimail->reopen($mailbox);
$headers = $bofelamimail->getMessageHeader($uid);
$bodyParts = $bofelamimail->getMessageBody($uid,'text/plain');
$attachments = $bofelamimail->getMessageAttachments($uid);
$headers = $bofelamimail->getMessageHeader($uid,$partid);
$bodyParts = $bofelamimail->getMessageBody($uid,'text/plain',$partid);
$attachments = $bofelamimail->getMessageAttachments($uid,$partid);
if ($mailbox == 'Sent') $mailaddress = $bofelamimail->decode_header($headers['TO']);
elseif (isset($headers['FROM'])) $mailaddress = $bofelamimail->decode_header($headers['FROM']);